home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1996-09-22 | 14.5 KB | [TEXT/CWIE] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sun Sep 22 16:13:30 1996, modified Sun Sep 22 16:13:30 1996, creator 'CWIE', type ASCII, 14146 bytes "AccuratePrimitiveShape.c" , at 0x37c2 410 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| dexmagic
| Picasso 64 Image
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [CWIE] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 18 41 63 63 75 72 61 | 74 65 50 72 69 6d 69 74 |..Accura|tePrimit|
|00000010| 69 76 65 53 68 61 70 65 | 2e 63 00 00 00 00 00 00 |iveShape|.c......|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 43 57 49 | 45 01 00 00 00 00 00 00 |.TEXTCWI|E.......|
|00000050| 00 00 00 00 00 37 42 00 | 00 01 9a ae 6b 4e 6a ae |.....7B.|....kNj.|
|00000060| 6b 4e 6a 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |kNj.....|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 ad 51 00 00 |........|.....Q..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 22 47 58 45 78 63 65 |#include| "GXExce|
|00000090| 70 74 69 6f 6e 73 2e 68 | 22 0d 23 69 6e 63 6c 75 |ptions.h|".#inclu|
|000000a0| 64 65 20 22 47 58 47 72 | 61 70 68 69 63 73 2e 68 |de "GXGr|aphics.h|
|000000b0| 22 0d 23 69 6e 63 6c 75 | 64 65 20 22 43 6f 6d 70 |".#inclu|de "Comp|
|000000c0| 75 74 65 4c 65 6e 67 74 | 68 2e 68 22 09 0d 23 69 |uteLengt|h.h"..#i|
|000000d0| 6e 63 6c 75 64 65 20 22 | 50 61 74 68 57 61 6c 6b |nclude "|PathWalk|
|000000e0| 69 6e 67 2e 68 22 0d 23 | 69 6e 63 6c 75 64 65 20 |ing.h".#|include |
|000000f0| 22 41 63 63 75 72 61 74 | 65 53 68 61 70 65 73 2e |"Accurat|eShapes.|
|00000100| 68 22 0d 0d 2f 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |h"../***|********|
|00000110| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00000120| 2a 2a 2a 2a 2a 0d 0d 09 | 41 70 70 6c 79 4f 6e 65 |*****...|ApplyOne|
|00000130| 42 65 6e 64 44 61 73 68 | 3a 0d 09 0d 09 54 68 69 |BendDash|:....Thi|
|00000140| 73 20 69 73 20 6d 79 20 | 6f 77 6e 20 76 65 72 73 |s is my |own vers|
|00000150| 69 6f 6e 20 6f 66 20 50 | 72 69 6d 69 74 69 76 65 |ion of P|rimitive|
|00000160| 53 68 61 70 65 20 66 6f | 72 20 74 68 65 20 63 61 |Shape fo|r the ca|
|00000170| 73 65 20 6f 66 0d 09 61 | 20 62 65 6e 64 20 64 61 |se of..a| bend da|
|00000180| 73 68 20 77 68 65 72 65 | 20 74 68 65 20 64 61 73 |sh where| the das|
|00000190| 68 20 73 68 61 70 65 20 | 69 73 20 61 20 70 6f 6c |h shape |is a pol|
|000001a0| 79 67 6f 6e 2e 20 20 28 | 73 65 65 20 72 75 6c 65 |ygon. (|see rule|
|000001b0| 73 20 62 65 6c 6f 77 29 | 0d 09 0d 09 54 68 69 73 |s below)|....This|
|000001c0| 20 69 73 20 62 65 63 61 | 75 73 65 20 74 68 65 72 | is beca|use ther|
|000001d0| 65 20 73 65 65 6d 20 74 | 6f 20 62 65 20 69 6e 61 |e seem t|o be ina|
|000001e0| 63 63 75 72 61 63 69 65 | 73 20 69 6e 20 47 58 20 |ccuracie|s in GX |
|000001f0| 64 61 73 68 69 6e 67 20 | 66 6f 72 20 74 68 69 73 |dashing |for this|
|00000200| 0d 09 63 61 73 65 20 77 | 68 69 63 68 20 63 61 75 |..case w|hich cau|
|00000210| 73 65 20 74 68 65 20 74 | 65 78 74 20 70 6f 73 69 |se the t|ext posi|
|00000220| 74 69 6f 6e 69 6e 67 20 | 74 6f 20 6c 6f 6f 6b 20 |tioning |to look |
|00000230| 62 61 64 20 77 68 65 6e | 20 74 68 65 20 64 61 73 |bad when| the das|
|00000240| 68 69 6e 67 0d 09 69 73 | 20 75 73 65 64 20 74 6f |hing..is| used to|
|00000250| 20 64 65 74 65 72 6d 69 | 6e 65 20 43 75 72 76 65 | determi|ne Curve|
|00000260| 4c 61 79 6f 75 74 2e 0d | 09 0d 09 53 69 6e 63 65 |Layout..|...Since|
|00000270| 20 57 65 20 6b 6e 6f 77 | 20 74 68 65 20 61 64 76 | We know| the adv|
|00000280| 61 6e 63 65 20 69 73 20 | 7a 65 72 6f 2c 20 77 65 |ance is |zero, we|
|00000290| 20 6f 6e 6c 79 20 68 61 | 76 65 20 74 6f 20 72 65 | only ha|ve to re|
|000002a0| 70 65 61 74 20 74 68 65 | 20 64 61 73 68 20 6f 6e |peat the| dash on|
|000002b0| 63 65 2e 0d 09 54 68 69 | 73 20 6d 61 6b 65 73 20 |ce...Thi|s makes |
|000002c0| 69 74 20 65 61 73 79 2e | 0d 09 0d 0d 2a 2a 2a 2a |it easy.|....****|
|000002d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2f 0d 0d 74 |********|****/..t|
|000002f0| 79 70 65 64 65 66 20 73 | 74 72 75 63 74 20 7b 0d |ypedef s|truct {.|
|00000300| 0d 09 67 78 50 6f 69 6e | 74 09 09 63 75 72 72 65 |..gxPoin|t..curre|
|00000310| 6e 74 50 6f 69 6e 74 3b | 09 09 09 09 09 09 09 2f |ntPoint;|......./|
|00000320| 2f 20 74 68 65 20 63 75 | 72 72 65 6e 74 20 70 6f |/ the cu|rrent po|
|00000330| 69 6e 74 20 69 6e 20 6f | 75 72 20 73 74 61 74 65 |int in o|ur state|
|00000340| 2e 0d 09 67 78 50 6f 69 | 6e 74 09 09 66 69 72 73 |...gxPoi|nt..firs|
|00000350| 74 50 6f 69 6e 74 3b 09 | 09 09 09 09 09 09 09 2f |tPoint;.|......./|
|00000360| 2f 20 74 68 65 20 66 69 | 72 73 74 20 70 6f 69 6e |/ the fi|rst poin|
|00000370| 74 20 69 6e 20 74 68 65 | 20 63 75 72 72 65 6e 74 |t in the| current|
|00000380| 20 63 6f 6e 74 6f 75 72 | 2e 0d 09 64 6f 75 62 6c | contour|...doubl|
|00000390| 65 09 09 63 75 72 72 65 | 6e 74 4c 65 6e 67 74 68 |e..curre|ntLength|
|000003a0| 3b 09 09 09 09 09 09 2f | 2f 20 63 61 63 68 65 20 |;....../|/ cache |
|000003b0| 6f 66 20 63 75 72 72 65 | 6e 74 20 6c 65 6e 67 74 |of curre|nt lengt|
|000003c0| 68 3b 0d 09 6c 6f 6e 67 | 09 09 09 63 75 72 72 65 |h;..long|...curre|
|000003d0| 6e 74 44 61 73 68 53 65 | 67 6d 65 6e 74 3b 09 09 |ntDashSe|gment;..|
|000003e0| 09 09 2f 2f 20 69 6e 64 | 65 78 20 6f 66 20 63 75 |..// ind|ex of cu|
|000003f0| 72 72 65 6e 74 20 64 61 | 73 68 20 73 68 61 70 65 |rrent da|sh shape|
|00000400| 20 73 65 67 6d 65 6e 74 | 2e 0d 09 6c 6f 6e 67 09 | segment|...long.|
|00000410| 09 09 64 61 73 68 53 65 | 67 6d 65 6e 74 43 6f 75 |..dashSe|gmentCou|
|00000420| 6e 74 3b 09 09 09 09 09 | 2f 2f 20 48 6f 77 20 6d |nt;.....|// How m|
|00000430| 61 6e 79 20 73 65 67 6d | 65 6e 74 73 69 6e 20 74 |any segm|entsin t|
|00000440| 68 65 20 64 61 73 68 20 | 73 68 61 70 65 2e 0d 09 |he dash |shape...|
|00000450| 64 6f 75 62 6c 65 09 09 | 2a 73 74 61 72 74 4c 65 |double..|*startLe|
|00000460| 6e 67 74 68 73 3b 09 09 | 09 09 09 09 2f 2f 20 50 |ngths;..|....// P|
|00000470| 6f 69 6e 74 65 72 20 74 | 6f 20 61 72 72 61 79 20 |ointer t|o array |
|00000480| 6f 66 20 64 61 73 68 20 | 73 65 67 6d 65 6e 74 20 |of dash |segment |
|00000490| 73 74 61 72 74 20 6c 65 | 6e 67 74 68 73 3b 0d 09 |start le|ngths;..|
|000004a0| 64 6f 75 62 6c 65 09 09 | 2a 65 6e 64 4c 65 6e 67 |double..|*endLeng|
|000004b0| 74 68 73 3b 09 09 09 09 | 09 09 09 2f 2f 20 50 6f |ths;....|...// Po|
|000004c0| 69 6e 74 65 72 20 74 6f | 20 61 72 72 61 79 20 6f |inter to| array o|
|000004d0| 66 20 64 61 73 68 20 73 | 65 67 6d 65 6e 74 20 65 |f dash s|egment e|
|000004e0| 6e 64 20 6c 65 6e 67 74 | 68 73 3b 0d 09 42 6f 6f |nd lengt|hs;..Boo|
|000004f0| 6c 65 61 6e 09 09 73 74 | 61 72 74 65 64 53 65 67 |lean..st|artedSeg|
|00000500| 6d 65 6e 74 3b 09 09 09 | 09 09 09 2f 2f 20 48 61 |ment;...|...// Ha|
|00000510| 76 65 20 77 65 20 73 74 | 61 72 74 65 64 20 62 75 |ve we st|arted bu|
|00000520| 69 6c 64 69 6e 67 20 61 | 20 62 65 6e 74 20 73 65 |ilding a| bent se|
|00000530| 67 6d 65 6e 74 3f 0d 09 | 67 78 53 68 61 70 65 09 |gment?..|gxShape.|
|00000540| 09 62 65 6e 64 44 61 73 | 68 53 68 61 70 65 3b 09 |.bendDas|hShape;.|
|00000550| 09 09 09 09 09 2f 2f 20 | 42 75 69 6c 64 20 74 68 |.....// |Build th|
|00000560| 65 20 62 65 6e 64 20 64 | 61 73 68 20 69 6e 20 68 |e bend d|ash in h|
|00000570| 65 72 65 2e 09 0d 09 0d | 7d 20 54 42 65 6e 64 44 |ere.....|} TBendD|
|00000580| 61 73 68 52 65 63 6f 72 | 64 3b 0d 0d 0d 76 6f 69 |ashRecor|d;...voi|
|00000590| 64 20 43 75 72 76 65 54 | 6f 50 61 74 68 73 53 74 |d CurveT|oPathsSt|
|000005a0| 72 75 63 74 75 72 65 28 | 67 78 43 75 72 76 65 20 |ructure(|gxCurve |
|000005b0| 2a 73 75 62 43 75 72 76 | 65 2c 20 67 78 50 61 74 |*subCurv|e, gxPat|
|000005c0| 68 73 20 2a 73 75 62 50 | 61 74 68 29 3b 0d 76 6f |hs *subP|ath);.vo|
|000005d0| 69 64 20 43 75 72 76 65 | 54 6f 50 61 74 68 73 53 |id Curve|ToPathsS|
|000005e0| 74 72 75 63 74 75 72 65 | 28 67 78 43 75 72 76 65 |tructure|(gxCurve|
|000005f0| 20 2a 73 75 62 43 75 72 | 76 65 2c 20 67 78 50 61 | *subCur|ve, gxPa|
|00000600| 74 68 73 20 2a 73 75 62 | 50 61 74 68 29 0d 09 7b |ths *sub|Path)..{|
|00000610| 0d 09 09 63 68 61 72 09 | 09 2a 70 57 61 6c 6b 65 |...char.|.*pWalke|
|00000620| 72 20 3d 20 28 63 68 61 | 72 2a 29 73 75 62 50 61 |r = (cha|r*)subPa|
|00000630| 74 68 3b 0d 09 09 6c 6f | 6e 67 09 09 2a 61 4c 6f |th;...lo|ng..*aLo|
|00000640| 6e 67 3b 0d 09 09 67 78 | 50 6f 69 6e 74 09 2a 61 |ng;...gx|Point.*a|
|00000650| 50 6f 69 6e 74 3b 0d 09 | 09 0d 09 09 61 4c 6f 6e |Point;..|....aLon|
|00000660| 67 20 3d 20 28 6c 6f 6e | 67 2a 29 70 57 61 6c 6b |g = (lon|g*)pWalk|
|00000670| 65 72 3b 0d 09 09 70 57 | 61 6c 6b 65 72 20 2b 3d |er;...pW|alker +=|
|00000680| 20 73 69 7a 65 6f 66 28 | 6c 6f 6e 67 29 3b 0d 09 | sizeof(|long);..|
|00000690| 09 2a 61 4c 6f 6e 67 20 | 3d 20 31 3b 09 09 09 09 |.*aLong |= 1;....|
|000006a0| 09 09 09 09 09 2f 2f 20 | 68 6f 77 20 6d 61 6e 79 |.....// |how many|
|000006b0| 20 63 6f 75 6e 74 6f 75 | 72 73 2e 0d 09 0d 09 09 | countou|rs......|
|000006c0| 61 4c 6f 6e 67 20 3d 20 | 28 6c 6f 6e 67 2a 29 70 |aLong = |(long*)p|
|000006d0| 57 61 6c 6b 65 72 3b 0d | 09 09 70 57 61 6c 6b 65 |Walker;.|..pWalke|
|000006e0| 72 20 2b 3d 20 73 69 7a | 65 6f 66 28 6c 6f 6e 67 |r += siz|eof(long|
|000006f0| 29 3b 0d 09 09 2a 61 4c | 6f 6e 67 20 3d 20 33 3b |);...*aL|ong = 3;|
|00000700| 09 09 09 09 09 09 09 09 | 09 2f 2f 20 68 6f 77 20 |........|.// how |
|00000710| 6d 61 6e 79 20 70 6f 69 | 6e 73 20 69 6e 20 74 68 |many poi|ns in th|
|00000720| 65 20 63 6f 6e 74 6f 75 | 72 2e 09 0d 09 09 0d 09 |e contou|r.......|
|00000730| 09 61 4c 6f 6e 67 20 3d | 20 28 6c 6f 6e 67 2a 29 |.aLong =| (long*)|
|00000740| 70 57 61 6c 6b 65 72 3b | 0d 09 09 70 57 61 6c 6b |pWalker;|...pWalk|
|00000750| 65 72 20 2b 3d 20 73 69 | 7a 65 6f 66 28 6c 6f 6e |er += si|zeof(lon|
|00000760| 67 29 3b 0d 09 09 2a 61 | 4c 6f 6e 67 20 3d 20 30 |g);...*a|Long = 0|
|00000770| 78 34 30 30 30 30 30 30 | 30 3b 09 09 09 09 09 2f |x4000000|0;...../|
|00000780| 2f 20 63 6f 6e 74 72 6f | 6c 20 62 69 74 73 3a 20 |/ contro|l bits: |
|00000790| 30 2d 31 2d 30 2d 2e 2e | 2e 20 20 66 6f 72 20 6f |0-1-0-..|. for o|
|000007a0| 6e 20 6f 66 66 20 6f 6e | 2e 0d 09 09 0d 09 09 2f |n off on|......./|
|000007b0| 2a 20 6e 6f 77 20 74 68 | 65 20 70 6f 69 6e 74 73 |* now th|e points|
|000007c0| 20 2a 2f 0d 09 09 0d 09 | 09 61 50 6f 69 6e 74 20 | */.....|.aPoint |
|000007d0| 3d 20 28 67 78 50 6f 69 | 6e 74 2a 29 70 57 61 6c |= (gxPoi|nt*)pWal|
|000007e0| 6b 65 72 3b 0d 09 09 61 | 50 6f 69 6e 74 2d 3e 78 |ker;...a|Point->x|
|000007f0| 20 3d 20 73 75 62 43 75 | 72 76 65 2d 3e 66 69 72 | = subCu|rve->fir|
|00000800| 73 74 2e 78 3b 0d 09 09 | 61 50 6f 69 6e 74 2d 3e |st.x;...|aPoint->|
|00000810| 79 20 3d 20 73 75 62 43 | 75 72 76 65 2d 3e 66 69 |y = subC|urve->fi|
|00000820| 72 73 74 2e 79 3b 0d 09 | 09 61 50 6f 69 6e 74 20 |rst.y;..|.aPoint |
|00000830| 2b 3d 20 31 3b 0d 09 09 | 0d 09 09 61 50 6f 69 6e |+= 1;...|...aPoin|
|00000840| 74 2d 3e 78 20 3d 20 73 | 75 62 43 75 72 76 65 2d |t->x = s|ubCurve-|
|00000850| 3e 63 6f 6e 74 72 6f 6c | 2e 78 3b 0d 09 09 61 50 |>control|.x;...aP|
|00000860| 6f 69 6e 74 2d 3e 79 20 | 3d 20 73 75 62 43 75 72 |oint->y |= subCur|
|00000870| 76 65 2d 3e 63 6f 6e 74 | 72 6f 6c 2e 79 3b 0d 09 |ve->cont|rol.y;..|
|00000880| 09 61 50 6f 69 6e 74 20 | 2b 3d 20 31 3b 0d 09 09 |.aPoint |+= 1;...|
|00000890| 0d 09 09 61 50 6f 69 6e | 74 2d 3e 78 20 3d 20 73 |...aPoin|t->x = s|
|000008a0| 75 62 43 75 72 76 65 2d | 3e 6c 61 73 74 2e 78 3b |ubCurve-|>last.x;|
|000008b0| 0d 09 09 61 50 6f 69 6e | 74 2d 3e 79 20 3d 20 73 |...aPoin|t->y = s|
|000008c0| 75 62 43 75 72 76 65 2d | 3e 6c 61 73 74 2e 79 3b |ubCurve-|>last.y;|
|000008d0| 0d 09 09 0d 09 7d 2f 2f | 43 75 72 76 65 54 6f 50 |.....}//|CurveToP|
|000008e0| 61 74 68 73 53 74 72 75 | 63 74 75 72 65 0d 0d 0d |athsStru|cture...|
|000008f0| 2f 2a 2a 2a 2a 2a 2a 2a | 0d 0d 09 50 61 74 68 57 |/*******|...PathW|
|00000900| 61 6c 6b 65 72 20 43 61 | 6c 6c 62 61 63 6b 73 20 |alker Ca|llbacks |
|00000910| 66 6f 72 20 69 6d 70 6c | 65 6d 65 6e 74 69 6e 67 |for impl|ementing|
|00000920| 20 62 65 6e 64 20 64 61 | 73 68 69 6e 67 20 6f 66 | bend da|shing of|
|00000930| 20 68 61 69 72 6c 69 6e | 65 73 3a 0d 09 0d 09 41 | hairlin|es:....A|
|00000940| 73 20 77 65 20 65 6e 74 | 65 72 20 61 20 6c 69 6e |s we ent|er a lin|
|00000950| 65 20 6f 72 20 61 20 63 | 75 72 76 65 20 77 65 20 |e or a c|urve we |
|00000960| 6c 6f 6f 6b 20 61 74 20 | 74 68 65 20 63 75 72 72 |look at |the curr|
|00000970| 65 6e 74 20 64 61 73 68 | 20 73 65 67 6d 65 6e 74 |ent dash| segment|
|00000980| 27 73 20 0d 09 73 74 61 | 72 74 20 61 6e 64 20 65 |'s ..sta|rt and e|
|00000990| 6e 64 20 6c 65 6e 67 74 | 68 2e 20 20 54 68 69 73 |nd lengt|h. This|
|000009a0| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 64 65 74 | informa|tion det|
|000009b0| 65 72 6d 69 6e 65 73 20 | 77 68 65 74 68 65 72 20 |ermines |whether |
|000009c0| 74 68 65 20 63 75 72 72 | 65 6e 74 0d 09 73 68 61 |the curr|ent..sha|
|000009d0| 70 65 27 73 20 63 75 72 | 76 65 20 6f 72 20 6c 69 |pe's cur|ve or li|
|000009e0| 6e 65 20 73 65 67 6d 65 | 6e 74 20 63 6f 6e 74 61 |ne segme|nt conta|
|000009f0| 69 6e 73 20 74 68 65 20 | 64 61 73 68 2e 20 20 49 |ins the |dash. I|
|00000a00| 74 20 63 61 6e 20 63 6f | 6e 74 61 69 6e 20 61 6c |t can co|ntain al|
|00000a10| 6c 20 6f 72 0d 09 70 61 | 72 74 20 6f 66 20 74 68 |l or..pa|rt of th|
|00000a20| 65 20 64 61 73 68 2e 20 | 20 49 6e 20 74 68 65 20 |e dash. | In the |
|00000a30| 63 61 73 65 20 77 68 65 | 72 65 20 69 74 20 63 6f |case whe|re it co|
|00000a40| 6e 74 61 69 6e 73 20 70 | 61 72 74 20 6f 66 20 74 |ntains p|art of t|
|00000a50| 68 65 20 64 61 73 68 2c | 20 74 68 65 20 70 61 72 |he dash,| the par|
|00000a60| 74 0d 09 69 73 20 63 6f | 6d 70 75 74 65 64 20 61 |t..is co|mputed a|
|00000a70| 6e 64 20 61 64 64 65 64 | 20 74 6f 20 74 68 65 20 |nd added| to the |
|00000a80| 62 65 6e 64 44 61 73 68 | 20 72 65 73 75 6c 74 2e |bendDash| result.|
|00000a90| 0d 0d 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 0d 0d 42 6f |..******|**/...Bo|
|00000aa0| 6f 6c 65 61 6e 20 42 65 | 6e 64 44 61 73 68 43 75 |olean Be|ndDashCu|
|00000ab0| 72 76 65 74 6f 28 67 78 | 50 6f 69 6e 74 20 70 5b |rveto(gx|Point p[|
|00000ac0| 33 5d 2c 20 20 54 42 65 | 6e 64 44 61 73 68 52 65 |3], TBe|ndDashRe|
|00000ad0| 63 6f 72 64 20 2a 62 64 | 72 29 3b 0d 42 6f 6f 6c |cord *bd|r);.Bool|
|00000ae0| 65 61 6e 20 42 65 6e 64 | 44 61 73 68 43 75 72 76 |ean Bend|DashCurv|
|00000af0| 65 74 6f 28 67 78 50 6f | 69 6e 74 20 70 5b 33 5d |eto(gxPo|int p[3]|
|00000b00| 2c 20 20 54 42 65 6e 64 | 44 61 73 68 52 65 63 6f |, TBend|DashReco|
|00000b10| 72 64 20 2a 62 64 72 29 | 0d 09 7b 0d 09 09 67 78 |rd *bdr)|..{...gx|
|00000b20| 43 75 72 76 65 09 09 09 | 61 43 75 72 76 65 2c 20 |Curve...|aCurve, |
|00000b30| 73 75 62 43 75 72 76 65 | 3b 0d 09 09 63 68 61 72 |subCurve|;...char|
|00000b40| 09 09 09 09 73 75 62 50 | 61 74 68 44 61 74 61 5b |....subP|athData[|
|00000b50| 20 73 69 7a 65 6f 66 28 | 6c 6f 6e 67 29 20 2b 20 | sizeof(|long) + |
|00000b60| 73 69 7a 65 6f 66 28 6c | 6f 6e 67 29 20 2b 20 33 |sizeof(l|ong) + 3|
|00000b70| 20 2a 20 73 69 7a 65 6f | 66 28 67 78 50 6f 69 6e | * sizeo|f(gxPoin|
|00000b80| 74 29 20 2b 20 73 69 7a | 65 6f 66 28 6c 6f 6e 67 |t) + siz|eof(long|
|00000b90| 29 5d 3b 20 0d 09 09 67 | 78 50 61 74 68 73 09 09 |)]; ...g|xPaths..|
|00000ba0| 09 2a 73 75 62 50 61 74 | 68 20 3d 20 28 67 78 50 |.*subPat|h = (gxP|
|00000bb0| 61 74 68 73 2a 29 73 75 | 62 50 61 74 68 44 61 74 |aths*)su|bPathDat|
|00000bc0| 61 3b 0d 09 09 64 6f 75 | 62 6c 65 09 09 09 73 65 |a;...dou|ble...se|
|00000bd0| 67 6d 65 6e 74 4c 65 6e | 67 74 68 3b 0d 09 09 64 |gmentLen|gth;...d|
|00000be0| 6f 75 62 6c 65 09 09 09 | 64 31 2c 20 64 32 3b 0d |ouble...|d1, d2;.|
|00000bf0| 09 09 42 6f 6f 6c 65 61 | 6e 09 09 09 69 6e 53 65 |..Boolea|n...inSe|
|00000c00| 67 6d 65 6e 74 20 3d 20 | 66 61 6c 73 65 3b 0d 09 |gment = |false;..|
|00000c10| 09 42 6f 6f 6c 65 61 6e | 09 09 09 73 74 61 72 74 |.Boolean|...start|
|00000c20| 43 6f 6e 74 6f 75 72 20 | 3d 20 66 61 6c 73 65 3b |Contour |= false;|
|00000c30| 0d 09 09 42 6f 6f 6c 65 | 61 6e 09 09 09 72 65 73 |...Boole|an...res|
|00000c40| 75 6c 74 20 3d 20 66 61 | 6c 73 65 3b 0d 09 09 0d |ult = fa|lse;....|
|00000c50| 09 09 61 43 75 72 76 65 | 2e 66 69 72 73 74 2e 78 |..aCurve|.first.x|
|00000c60| 20 3d 20 70 5b 30 5d 2e | 78 3b 0d 09 09 61 43 75 | = p[0].|x;...aCu|
|00000c70| 72 76 65 2e 66 69 72 73 | 74 2e 79 20 3d 20 70 5b |rve.firs|t.y = p[|
|00000c80| 30 5d 2e 79 3b 0d 09 09 | 61 43 75 72 76 65 2e 63 |0].y;...|aCurve.c|
|00000c90| 6f 6e 74 72 6f 6c 2e 78 | 20 3d 20 70 5b 31 5d 2e |ontrol.x| = p[1].|
|00000ca0| 78 3b 0d 09 09 61 43 75 | 72 76 65 2e 63 6f 6e 74 |x;...aCu|rve.cont|
|00000cb0| 72 6f 6c 2e 79 20 3d 20 | 70 5b 31 5d 2e 79 3b 0d |rol.y = |p[1].y;.|
|00000cc0| 09 09 61 43 75 72 76 65 | 2e 6c 61 73 74 2e 78 20 |..aCurve|.last.x |
|00000cd0| 3d 20 70 5b 32 5d 2e 78 | 3b 0d 09 09 61 43 75 72 |= p[2].x|;...aCur|
|00000ce0| 76 65 2e 6c 61 73 74 2e | 79 20 3d 20 70 5b 32 5d |ve.last.|y = p[2]|
|00000cf0| 2e 79 3b 0d 09 09 0d 09 | 09 73 65 67 6d 65 6e 74 |.y;.....|.segment|
|00000d00| 4c 65 6e 67 74 68 20 3d | 20 47 65 74 43 75 72 76 |Length =| GetCurv|
|00000d10| 65 4c 65 6e 67 74 68 28 | 26 61 43 75 72 76 65 29 |eLength(|&aCurve)|
|00000d20| 3b 0d 09 09 0d 09 09 69 | 66 20 28 21 62 64 72 2d |;......i|f (!bdr-|
|00000d30| 3e 73 74 61 72 74 65 64 | 53 65 67 6d 65 6e 74 29 |>started|Segment)|
|00000d40| 20 7b 0d 09 09 0d 09 09 | 09 2f 2f 20 49 66 20 77 | {......|.// If w|
|00000d50| 65 20 68 61 76 65 6e 27 | 74 20 73 74 61 72 74 65 |e haven'|t starte|
|00000d60| 64 20 77 69 74 68 20 74 | 68 69 73 20 64 61 73 68 |d with t|his dash|
|00000d70| 20 73 65 67 6d 65 6e 74 | 2c 20 73 65 65 20 69 66 | segment|, see if|
|00000d80| 20 77 65 20 73 68 6f 75 | 6c 64 20 73 74 61 72 74 | we shou|ld start|
|00000d90| 2e 0d 09 09 09 0d 09 09 | 09 69 66 20 28 20 62 64 |........|.if ( bd|
|00000da0| 72 2d 3e 73 74 61 72 74 | 4c 65 6e 67 74 68 73 5b |r->start|Lengths[|
|00000db0| 62 64 72 2d 3e 63 75 72 | 72 65 6e 74 44 61 73 68 |bdr->cur|rentDash|
|00000dc0| 53 65 67 6d 65 6e 74 5d | 20 3c 3d 20 28 62 64 72 |Segment]| <= (bdr|
|00000dd0| 2d 3e 63 75 72 72 65 6e | 74 4c 65 6e 67 74 68 20 |->curren|tLength |
|00000de0| 2b 20 73 65 67 6d 65 6e | 74 4c 65 6e 67 74 68 29 |+ segmen|tLength)|
|00000df0| 20 29 20 7b 0d 09 09 09 | 09 62 64 72 2d 3e 73 74 | ) {....|.bdr->st|
|00000e00| 61 72 74 65 64 53 65 67 | 6d 65 6e 74 20 3d 20 74 |artedSeg|ment = t|
|00000e10| 72 75 65 3b 0d 09 09 09 | 09 64 31 20 3d 20 62 64 |rue;....|.d1 = bd|
|00000e20| 72 2d 3e 73 74 61 72 74 | 4c 65 6e 67 74 68 73 5b |r->start|Lengths[|
|00000e30| 62 64 72 2d 3e 63 75 72 | 72 65 6e 74 44 61 73 68 |bdr->cur|rentDash|
|00000e40| 53 65 67 6d 65 6e 74 5d | 20 2d 20 62 64 72 2d 3e |Segment]| - bdr->|
|00000e50| 63 75 72 72 65 6e 74 4c | 65 6e 67 74 68 3b 0d 09 |currentL|ength;..|
|00000e60| 09 09 09 69 6e 53 65 67 | 6d 65 6e 74 20 3d 20 74 |...inSeg|ment = t|
|00000e70| 72 75 65 3b 0d 09 09 09 | 09 73 74 61 72 74 43 6f |rue;....|.startCo|
|00000e80| 6e 74 6f 75 72 20 3d 20 | 74 72 75 65 3b 0d 09 09 |ntour = |true;...|
|00000e90| 09 7d 2f 2f 65 6e 64 20 | 69 66 0d 09 09 09 0d 09 |.}//end |if......|
|00000ea0| 09 7d 2f 2f 65 6e 64 20 | 69 66 0d 09 09 09 0d 09 |.}//end |if......|
|00000eb0| 09 2f 2f 20 63 6f 6d 70 | 75 74 65 20 74 68 65 20 |.// comp|ute the |
|00000ec0| 65 6e 64 20 6c 65 6e 67 | 74 68 20 6f 66 20 74 68 |end leng|th of th|
|00000ed0| 65 20 73 65 67 6d 65 6e | 74 2e 20 49 66 20 74 68 |e segmen|t. If th|
|00000ee0| 65 20 63 6f 6e 74 6f 75 | 72 20 73 75 72 70 61 73 |e contou|r surpas|
|00000ef0| 73 65 73 20 74 68 65 20 | 73 65 67 6d 65 6e 74 20 |ses the |segment |
|00000f00| 74 68 65 6e 20 65 6e 64 | 20 6c 65 6e 67 74 68 20 |then end| length |
|00000f10| 69 73 20 73 65 67 6d 65 | 6e 74 20 6c 65 6e 67 74 |is segme|nt lengt|
|00000f20| 68 0d 09 09 69 66 20 28 | 62 64 72 2d 3e 73 74 61 |h...if (|bdr->sta|
|00000f30| 72 74 65 64 53 65 67 6d | 65 6e 74 29 20 7b 0d 09 |rtedSegm|ent) {..|
|00000f40| 09 0d 09 09 09 69 66 20 | 28 21 69 6e 53 65 67 6d |.....if |(!inSegm|
|00000f50| 65 6e 74 29 20 64 31 20 | 3d 20 30 2e 30 3b 0d 09 |ent) d1 |= 0.0;..|
|00000f60| 09 09 69 66 20 28 62 64 | 72 2d 3e 65 6e 64 4c 65 |..if (bd|r->endLe|
|00000f70| 6e 67 74 68 73 5b 62 64 | 72 2d 3e 63 75 72 72 65 |ngths[bd|r->curre|
|00000f80| 6e 74 44 61 73 68 53 65 | 67 6d 65 6e 74 5d 20 3c |ntDashSe|gment] <|
|00000f90| 3d 20 28 62 64 72 2d 3e | 63 75 72 72 65 6e 74 4c |= (bdr->|currentL|
|00000fa0| 65 6e 67 74 68 20 2b 20 | 73 65 67 6d 65 6e 74 4c |ength + |segmentL|
|00000fb0| 65 6e 67 74 68 29 20 29 | 0d 09 09 09 09 64 32 20 |ength) )|.....d2 |
|00000fc0| 3d 20 62 64 72 2d 3e 65 | 6e 64 4c 65 6e 67 74 68 |= bdr->e|ndLength|
|00000fd0| 73 5b 62 64 72 2d 3e 63 | 75 72 72 65 6e 74 44 61 |s[bdr->c|urrentDa|
|00000fe0| 73 68 53 65 67 6d 65 6e | 74 5d 20 2d 20 62 64 72 |shSegmen|t] - bdr|
|00000ff0| 2d 3e 63 75 72 72 65 6e | 74 4c 65 6e 67 74 68 3b |->curren|tLength;|
|00001000| 0d 09 09 09 65 6c 73 65 | 0d 09 09 09 09 64 32 20 |....else|.....d2 |
|00001010| 3d 20 73 65 67 6d 65 6e | 74 4c 65 6e 67 74 68 3b |= segmen|tLength;|
|00001020| 0d 09 09 09 09 0d 09 09 | 09 69 6e 53 65 67 6d 65 |........|.inSegme|
|00001030| 6e 74 20 3d 20 74 72 75 | 65 3b 0d 09 09 0d 09 09 |nt = tru|e;......|
|00001040| 7d 2f 2f 65 6e 64 20 69 | 66 0d 09 09 0d 09 09 69 |}//end i|f......i|
|00001050| 66 20 28 69 6e 53 65 67 | 6d 65 6e 74 29 20 7b 0d |f (inSeg|ment) {.|
|00001060| 09 09 09 09 09 0d 09 09 | 09 2f 2f 20 6e 6f 77 20 |........|.// now |
|00001070| 63 6f 6d 70 75 74 65 20 | 74 68 65 20 73 75 62 63 |compute |the subc|
|00001080| 75 72 76 65 20 66 72 6f | 6d 20 64 69 73 74 61 6e |urve fro|m distan|
|00001090| 63 65 73 20 64 31 20 74 | 68 72 6f 75 67 68 20 64 |ces d1 t|hrough d|
|000010a0| 32 2e 0d 09 09 09 44 65 | 74 65 72 6d 69 6e 65 53 |2.....De|termineS|
|000010b0| 75 62 43 75 72 76 65 28 | 26 61 43 75 72 76 65 2c |ubCurve(|&aCurve,|
|000010c0| 20 64 31 2c 20 64 32 2c | 20 26 73 75 62 43 75 72 | d1, d2,| &subCur|
|000010d0| 76 65 29 3b 0d 09 09 09 | 43 75 72 76 65 54 6f 50 |ve);....|CurveToP|
|000010e0| 61 74 68 73 53 74 72 75 | 63 74 75 72 65 28 26 73 |athsStru|cture(&s|
|000010f0| 75 62 43 75 72 76 65 2c | 20 73 75 62 50 61 74 68 |ubCurve,| subPath|
|00001100| 29 3b 09 09 09 0d 09 09 | 09 0d 09 09 09 2f 2f 20 |);......|.....// |
|00001110| 4e 6f 77 20 61 64 64 20 | 74 68 65 20 73 75 62 63 |Now add |the subc|
|00001120| 75 72 76 65 20 74 6f 20 | 74 68 65 20 64 61 73 68 |urve to |the dash|
|00001130| 65 64 20 73 68 61 70 65 | 20 77 65 20 61 72 65 20 |ed shape| we are |
|00001140| 62 75 69 6c 64 69 6e 67 | 2e 0d 09 09 09 69 66 20 |building|.....if |
|00001150| 28 73 74 61 72 74 43 6f | 6e 74 6f 75 72 29 0d 09 |(startCo|ntour)..|
|00001160| 09 09 09 47 58 53 65 74 | 50 61 74 68 50 61 72 74 |...GXSet|PathPart|
|00001170| 73 28 62 64 72 2d 3e 62 | 65 6e 64 44 61 73 68 53 |s(bdr->b|endDashS|
|00001180| 68 61 70 65 2c 20 30 2c | 20 30 2c 20 73 75 62 50 |hape, 0,| 0, subP|
|00001190| 61 74 68 2c 20 67 78 42 | 72 65 61 6b 4c 65 66 74 |ath, gxB|reakLeft|
|000011a0| 45 64 69 74 29 3b 0d 09 | 09 09 65 6c 73 65 0d 09 |Edit);..|..else..|
|000011b0| 09 09 09 47 58 53 65 74 | 50 61 74 68 50 61 72 74 |...GXSet|PathPart|
|000011c0| 73 28 62 64 72 2d 3e 62 | 65 6e 64 44 61 73 68 53 |s(bdr->b|endDashS|
|000011d0| 68 61 70 65 2c 20 30 2c | 20 30 2c 20 73 75 62 50 |hape, 0,| 0, subP|
|000011e0| 61 74 68 2c 20 67 78 42 | 72 65 61 6b 4e 65 69 74 |ath, gxB|reakNeit|
|000011f0| 68 65 72 45 64 69 74 29 | 3b 0d 09 09 09 09 09 09 |herEdit)|;.......|
|00001200| 09 0d 09 09 09 2f 2f 20 | 6e 6f 77 20 73 65 65 20 |.....// |now see |
|00001210| 69 66 20 77 65 20 73 68 | 6f 75 6c 64 20 67 6f 20 |if we sh|ould go |
|00001220| 74 6f 20 74 68 65 20 6e | 65 78 74 20 63 6f 6e 74 |to the n|ext cont|
|00001230| 6f 75 72 20 6f 66 20 74 | 68 65 20 64 61 73 68 20 |our of t|he dash |
|00001240| 73 68 61 70 65 20 6f 72 | 20 77 65 27 72 65 20 64 |shape or| we're d|
|00001250| 6f 6e 65 2e 0d 09 09 09 | 69 66 20 28 62 64 72 2d |one.....|if (bdr-|
|00001260| 3e 65 6e 64 4c 65 6e 67 | 74 68 73 5b 62 64 72 2d |>endLeng|ths[bdr-|
|00001270| 3e 63 75 72 72 65 6e 74 | 44 61 73 68 53 65 67 6d |>current|DashSegm|
|00001280| 65 6e 74 5d 20 3c 3d 20 | 28 62 64 72 2d 3e 63 75 |ent] <= |(bdr->cu|
|00001290| 72 72 65 6e 74 4c 65 6e | 67 74 68 20 2b 20 73 65 |rrentLen|gth + se|
|000012a0| 67 6d 65 6e 74 4c 65 6e | 67 74 68 29 20 29 20 7b |gmentLen|gth) ) {|
|000012b0| 0d 09 09 09 0d 09 09 09 | 09 62 64 72 2d 3e 73 74 |........|.bdr->st|
|000012c0| 61 72 74 65 64 53 65 67 | 6d 65 6e 74 20 3d 20 66 |artedSeg|ment = f|
|000012d0| 61 6c 73 65 3b 0d 09 09 | 09 09 62 64 72 2d 3e 63 |alse;...|..bdr->c|
|000012e0| 75 72 72 65 6e 74 44 61 | 73 68 53 65 67 6d 65 6e |urrentDa|shSegmen|
|000012f0| 74 20 2b 3d 20 31 3b 0d | 09 09 09 09 69 66 20 28 |t += 1;.|....if (|
|00001300| 62 64 72 2d 3e 63 75 72 | 72 65 6e 74 44 61 73 68 |bdr->cur|rentDash|
|00001310| 53 65 67 6d 65 6e 74 20 | 3e 3d 20 62 64 72 2d 3e |Segment |>= bdr->|
|00001320| 64 61 73 68 53 65 67 6d | 65 6e 74 43 6f 75 6e 74 |dashSegm|entCount|
|00001330| 29 09 09 2f 2f 20 77 65 | 27 76 65 20 65 78 61 75 |)..// we|'ve exau|
|00001340| 73 74 65 64 20 64 61 73 | 68 20 73 65 67 6d 65 6e |sted das|h segmen|
|00001350| 74 73 2e 20 0d 09 09 09 | 09 09 72 65 73 75 6c 74 |ts. ....|..result|
|00001360| 20 3d 20 74 72 75 65 3b | 0d 09 09 09 0d 09 09 09 | = true;|........|
|00001370| 7d 2f 2f 65 6e 64 20 69 | 66 0d 09 09 09 0d 09 09 |}//end i|f.......|
|00001380| 7d 2f 2f 65 6e 64 69 66 | 0d 0d 09 09 2f 2a 20 75 |}//endif|..../* u|
|00001390| 70 64 61 74 65 20 6f 75 | 72 20 73 74 61 74 65 20 |pdate ou|r state |
|000013a0| 2a 2f 0d 09 09 0d 09 09 | 62 64 72 2d 3e 63 75 72 |*/......|bdr->cur|
|000013b0| 72 65 6e 74 50 6f 69 6e | 74 2e 78 20 3d 20 61 43 |rentPoin|t.x = aC|
|000013c0| 75 72 76 65 2e 6c 61 73 | 74 2e 78 3b 0d 09 09 62 |urve.las|t.x;...b|
|000013d0| 64 72 2d 3e 63 75 72 72 | 65 6e 74 50 6f 69 6e 74 |dr->curr|entPoint|
|000013e0| 2e 79 20 3d 20 61 43 75 | 72 76 65 2e 6c 61 73 74 |.y = aCu|rve.last|
|000013f0| 2e 79 3b 0d 09 09 62 64 | 72 2d 3e 63 75 72 72 65 |.y;...bd|r->curre|
|00001400| 6e 74 4c 65 6e 67 74 68 | 20 2b 3d 20 73 65 67 6d |ntLength| += segm|
|00001410| 65 6e 74 4c 65 6e 67 74 | 68 3b 0d 09 09 0d 09 09 |entLengt|h;......|
|00001420| 72 65 74 75 72 6e 28 72 | 65 73 75 6c 74 29 3b 0d |return(r|esult);.|
|00001430| 09 0d 09 7d 2f 2f 42 65 | 6e 64 44 61 68 73 43 75 |...}//Be|ndDahsCu|
|00001440| 72 76 65 74 6f 0d 09 0d | 09 0d 42 6f 6f 6c 65 61 |rveto...|..Boolea|
|00001450| 6e 20 42 65 6e 64 44 61 | 73 68 4c 69 6e 65 74 6f |n BendDa|shLineto|
|00001460| 28 67 78 50 6f 69 6e 74 | 20 2a 70 2c 20 54 42 65 |(gxPoint| *p, TBe|
|00001470| 6e 64 44 61 73 68 52 65 | 63 6f 72 64 20 2a 62 64 |ndDashRe|cord *bd|
|00001480| 72 29 3b 0d 42 6f 6f 6c | 65 61 6e 20 42 65 6e 64 |r);.Bool|ean Bend|
|00001490| 44 61 73 68 4c 69 6e 65 | 74 6f 28 67 78 50 6f 69 |DashLine|to(gxPoi|
|000014a0| 6e 74 20 2a 70 2c 20 54 | 42 65 6e 64 44 61 73 68 |nt *p, T|BendDash|
|000014b0| 52 65 63 6f 72 64 20 2a | 62 64 72 29 0d 09 7b 0d |Record *|bdr)..{.|
|000014c0| 09 09 67 78 4c 69 6e 65 | 09 09 09 61 4c 69 6e 65 |..gxLine|...aLine|
|000014d0| 3b 0d 09 09 42 6f 6f 6c | 65 61 6e 09 09 09 73 74 |;...Bool|ean...st|
|000014e0| 6f 70 3b 0d 09 09 0d 09 | 09 61 4c 69 6e 65 2e 66 |op;.....|.aLine.f|
|000014f0| 69 72 73 74 2e 78 20 3d | 20 62 64 72 2d 3e 63 75 |irst.x =| bdr->cu|
|00001500| 72 72 65 6e 74 50 6f 69 | 6e 74 2e 78 3b 0d 09 09 |rrentPoi|nt.x;...|
|00001510| 61 4c 69 6e 65 2e 66 69 | 72 73 74 2e 79 20 3d 20 |aLine.fi|rst.y = |
|00001520| 62 64 72 2d 3e 63 75 72 | 72 65 6e 74 50 6f 69 6e |bdr->cur|rentPoin|
|00001530| 74 2e 79 3b 0d 09 09 61 | 4c 69 6e 65 2e 6c 61 73 |t.y;...a|Line.las|
|00001540| 74 2e 78 20 3d 20 70 2d | 3e 78 3b 0d 09 09 61 4c |t.x = p-|>x;...aL|
|00001550| 69 6e 65 2e 6c 61 73 74 | 2e 79 20 3d 20 70 2d 3e |ine.last|.y = p->|
|00001560| 79 3b 0d 0d 09 09 2f 2a | 20 46 6f 72 20 6e 6f 77 |y;..../*| For now|
|00001570| 2c 20 74 72 65 61 74 20 | 74 68 65 20 6c 69 6e 65 |, treat |the line|
|00001580| 20 6c 69 6b 65 20 61 20 | 63 75 72 76 65 20 73 6f | like a |curve so|
|00001590| 20 77 65 20 73 68 61 72 | 65 20 74 68 65 20 63 6f | we shar|e the co|
|000015a0| 64 65 2c 20 6e 6f 74 20 | 61 73 20 65 66 66 69 63 |de, not |as effic|
|000015b0| 69 65 6e 74 2c 20 62 75 | 74 20 73 69 6d 70 6c 65 |ient, bu|t simple|
|000015c0| 72 20 2a 2f 0d 09 09 7b | 0d 09 09 09 67 78 50 6f |r */...{|....gxPo|
|000015d0| 69 6e 74 09 09 63 75 72 | 76 65 70 5b 33 5d 3b 0d |int..cur|vep[3];.|
|000015e0| 09 09 09 63 75 72 76 65 | 70 5b 30 5d 2e 78 20 3d |...curve|p[0].x =|
|000015f0| 20 61 4c 69 6e 65 2e 66 | 69 72 73 74 2e 78 3b 0d | aLine.f|irst.x;.|
|00001600| 09 09 09 63 75 72 76 65 | 70 5b 30 5d 2e 79 20 3d |...curve|p[0].y =|
|00001610| 20 61 4c 69 6e 65 2e 66 | 69 72 73 74 2e 79 3b 0d | aLine.f|irst.y;.|
|00001620| 09 09 09 0d 09 09 09 63 | 75 72 76 65 70 5b 31 5d |.......c|urvep[1]|
|00001630| 2e 78 20 3d 20 28 61 4c | 69 6e 65 2e 66 69 72 73 |.x = (aL|ine.firs|
|00001640| 74 2e 78 20 2b 20 61 4c | 69 6e 65 2e 6c 61 73 74 |t.x + aL|ine.last|
|00001650| 2e 78 29 20 2f 20 32 3b | 0d 09 09 09 63 75 72 76 |.x) / 2;|....curv|
|00001660| 65 70 5b 31 5d 2e 79 20 | 3d 20 28 61 4c 69 6e 65 |ep[1].y |= (aLine|
|00001670| 2e 66 69 72 73 74 2e 79 | 20 2b 20 61 4c 69 6e 65 |.first.y| + aLine|
|00001680| 2e 6c 61 73 74 2e 79 29 | 20 2f 20 32 3b 0d 0d 09 |.last.y)| / 2;...|
|00001690| 09 09 63 75 72 76 65 70 | 5b 32 5d 2e 78 20 3d 20 |..curvep|[2].x = |
|000016a0| 61 4c 69 6e 65 2e 6c 61 | 73 74 2e 78 3b 0d 09 09 |aLine.la|st.x;...|
|000016b0| 09 63 75 72 76 65 70 5b | 32 5d 2e 79 20 3d 20 61 |.curvep[|2].y = a|
|000016c0| 4c 69 6e 65 2e 6c 61 73 | 74 2e 79 3b 0d 09 09 09 |Line.las|t.y;....|
|000016d0| 0d 09 09 09 73 74 6f 70 | 20 3d 20 42 65 6e 64 44 |....stop| = BendD|
|000016e0| 61 73 68 43 75 72 76 65 | 74 6f 28 63 75 72 76 65 |ashCurve|to(curve|
|000016f0| 70 2c 20 62 64 72 29 3b | 0d 09 09 09 0d 09 09 7d |p, bdr);|.......}|
|00001700| 0d 0d 09 09 62 64 72 2d | 3e 63 75 72 72 65 6e 74 |....bdr-|>current|
|00001710| 50 6f 69 6e 74 2e 78 20 | 3d 20 70 2d 3e 78 3b 0d |Point.x |= p->x;.|
|00001720| 09 09 62 64 72 2d 3e 63 | 75 72 72 65 6e 74 50 6f |..bdr->c|urrentPo|
|00001730| 69 6e 74 2e 79 20 3d 20 | 70 2d 3e 79 3b 0d 09 09 |int.y = |p->y;...|
|00001740| 0d 09 09 72 65 74 75 72 | 6e 28 73 74 6f 70 29 3b |...retur|n(stop);|
|00001750| 0d 09 0d 09 7d 2f 2f 42 | 65 6e 64 44 61 73 68 4c |....}//B|endDashL|
|00001760| 69 6e 65 74 6f 0d 0d 0d | 42 6f 6f 6c 65 61 6e 20 |ineto...|Boolean |
|00001770| 42 65 6e 64 44 61 73 68 | 43 6c 6f 73 65 70 61 74 |BendDash|Closepat|
|00001780| 68 28 54 42 65 6e 64 44 | 61 73 68 52 65 63 6f 72 |h(TBendD|ashRecor|
|00001790| 64 20 2a 62 64 72 29 3b | 0d 42 6f 6f 6c 65 61 6e |d *bdr);|.Boolean|
|000017a0| 20 42 65 6e 64 44 61 73 | 68 43 6c 6f 73 65 70 61 | BendDas|hClosepa|
|000017b0| 74 68 28 54 42 65 6e 64 | 44 61 73 68 52 65 63 6f |th(TBend|DashReco|
|000017c0| 72 64 20 2a 62 64 72 29 | 0d 09 7b 0d 09 09 42 6f |rd *bdr)|..{...Bo|
|000017d0| 6f 6c 65 61 6e 09 09 09 | 73 74 6f 70 3b 0d 09 09 |olean...|stop;...|
|000017e0| 73 74 6f 70 20 3d 20 42 | 65 6e 64 44 61 73 68 4c |stop = B|endDashL|
|000017f0| 69 6e 65 74 6f 28 26 28 | 62 64 72 2d 3e 66 69 72 |ineto(&(|bdr->fir|
|00001800| 73 74 50 6f 69 6e 74 29 | 2c 20 62 64 72 29 3b 09 |stPoint)|, bdr);.|
|00001810| 09 2f 2f 20 6a 75 73 74 | 20 64 6f 20 61 20 6c 69 |.// just| do a li|
|00001820| 6e 65 20 66 72 6f 6d 20 | 63 75 72 72 65 6e 74 20 |ne from |current |
|00001830| 74 6f 20 66 69 72 73 74 | 2e 0d 09 09 72 65 74 75 |to first|....retu|
|00001840| 72 6e 28 73 74 6f 70 29 | 3b 0d 09 0d 09 7d 2f 2f |rn(stop)|;....}//|
|00001850| 42 65 6e 64 44 61 73 68 | 43 6c 6f 73 65 70 61 74 |BendDash|Closepat|
|00001860| 68 0d 0d 42 6f 6f 6c 65 | 61 6e 20 42 65 6e 64 44 |h..Boole|an BendD|
|00001870| 61 73 68 4d 6f 76 65 74 | 6f 28 67 78 50 6f 69 6e |ashMovet|o(gxPoin|
|00001880| 74 20 2a 70 2c 20 54 42 | 65 6e 64 44 61 73 68 52 |t *p, TB|endDashR|
|00001890| 65 63 6f 72 64 20 2a 62 | 64 72 29 3b 0d 42 6f 6f |ecord *b|dr);.Boo|
|000018a0| 6c 65 61 6e 20 42 65 6e | 64 44 61 73 68 4d 6f 76 |lean Ben|dDashMov|
|000018b0| 65 74 6f 28 67 78 50 6f | 69 6e 74 20 2a 70 2c 20 |eto(gxPo|int *p, |
|000018c0| 54 42 65 6e 64 44 61 73 | 68 52 65 63 6f 72 64 20 |TBendDas|hRecord |
|000018d0| 2a 62 64 72 29 0d 09 7b | 0d 09 09 62 64 72 2d 3e |*bdr)..{|...bdr->|
|000018e0| 63 75 72 72 65 6e 74 50 | 6f 69 6e 74 2e 78 20 3d |currentP|oint.x =|
|000018f0| 20 70 2d 3e 78 3b 0d 09 | 09 62 64 72 2d 3e 63 75 | p->x;..|.bdr->cu|
|00001900| 72 72 65 6e 74 50 6f 69 | 6e 74 2e 79 20 3d 20 70 |rrentPoi|nt.y = p|
|00001910| 2d 3e 79 3b 0d 09 09 62 | 64 72 2d 3e 66 69 72 73 |->y;...b|dr->firs|
|00001920| 74 50 6f 69 6e 74 2e 78 | 20 3d 20 70 2d 3e 78 3b |tPoint.x| = p->x;|
|00001930| 0d 09 09 62 64 72 2d 3e | 66 69 72 73 74 50 6f 69 |...bdr->|firstPoi|
|00001940| 6e 74 2e 79 20 3d 20 70 | 2d 3e 79 3b 0d 09 09 62 |nt.y = p|->y;...b|
|00001950| 64 72 2d 3e 63 75 72 72 | 65 6e 74 4c 65 6e 67 74 |dr->curr|entLengt|
|00001960| 68 20 3d 20 30 2e 30 3b | 0d 09 09 62 64 72 2d 3e |h = 0.0;|...bdr->|
|00001970| 63 75 72 72 65 6e 74 44 | 61 73 68 53 65 67 6d 65 |currentD|ashSegme|
|00001980| 6e 74 20 3d 20 30 3b 0d | 09 09 62 64 72 2d 3e 73 |nt = 0;.|..bdr->s|
|00001990| 74 61 72 74 65 64 53 65 | 67 6d 65 6e 74 20 3d 20 |tartedSe|gment = |
|000019a0| 66 61 6c 73 65 3b 0d 09 | 0d 09 09 72 65 74 75 72 |false;..|...retur|
|000019b0| 6e 28 66 61 6c 73 65 29 | 3b 0d 09 0d 09 7d 2f 2f |n(false)|;....}//|
|000019c0| 42 65 6e 64 44 61 73 68 | 4d 6f 76 65 74 6f 0d 0d |BendDash|Moveto..|
|000019d0| 0d 2f 2a 2a 2a 2a 0d 09 | 43 6c 69 65 6e 74 20 72 |./****..|Client r|
|000019e0| 6f 75 74 69 6e 65 20 66 | 6f 72 20 50 61 74 68 57 |outine f|or PathW|
|000019f0| 61 6c 6b 65 72 20 6c 69 | 62 72 61 72 79 20 74 68 |alker li|brary th|
|00001a00| 61 74 20 77 69 6c 6c 20 | 64 6f 20 62 65 6e 64 20 |at will |do bend |
|00001a10| 64 61 73 68 69 6e 67 0d | 2a 2a 2a 2a 2a 2f 0d 76 |dashing.|*****/.v|
|00001a20| 6f 69 64 20 41 70 70 6c | 79 4f 6e 65 42 65 6e 64 |oid Appl|yOneBend|
|00001a30| 44 61 73 68 28 67 78 53 | 68 61 70 65 20 74 68 65 |Dash(gxS|hape the|
|00001a40| 53 68 61 70 65 2c 20 67 | 78 44 61 73 68 52 65 63 |Shape, g|xDashRec|
|00001a50| 6f 72 64 20 2a 74 68 65 | 44 61 73 68 29 3b 0d 76 |ord *the|Dash);.v|
|00001a60| 6f 69 64 20 41 70 70 6c | 79 4f 6e 65 42 65 6e 64 |oid Appl|yOneBend|
|00001a70| 44 61 73 68 28 67 78 53 | 68 61 70 65 20 74 68 65 |Dash(gxS|hape the|
|00001a80| 53 68 61 70 65 2c 20 67 | 78 44 61 73 68 52 65 63 |Shape, g|xDashRec|
|00001a90| 6f 72 64 20 2a 74 68 65 | 44 61 73 68 29 0d 09 7b |ord *the|Dash)..{|
|00001aa0| 0d 09 09 54 42 65 6e 64 | 44 61 73 68 52 65 63 6f |...TBend|DashReco|
|00001ab0| 72 64 09 09 62 64 72 3b | 0d 09 09 6c 6f 6e 67 09 |rd..bdr;|...long.|
|00001ac0| 09 09 09 09 09 09 69 64 | 78 3b 0d 09 09 67 78 52 |......id|x;...gxR|
|00001ad0| 65 63 74 61 6e 67 6c 65 | 09 09 09 09 64 61 73 68 |ectangle|....dash|
|00001ae0| 53 65 67 52 65 63 74 3b | 0d 09 09 0d 09 09 62 64 |SegRect;|......bd|
|00001af0| 72 2e 62 65 6e 64 44 61 | 73 68 53 68 61 70 65 20 |r.bendDa|shShape |
|00001b00| 3d 20 47 58 4e 65 77 53 | 68 61 70 65 28 67 78 50 |= GXNewS|hape(gxP|
|00001b10| 61 74 68 54 79 70 65 29 | 3b 09 09 09 2f 2f 20 54 |athType)|;...// T|
|00001b20| 68 65 20 72 65 73 75 6c | 74 20 77 69 6c 6c 20 61 |he resul|t will a|
|00001b30| 6c 77 61 79 73 20 62 65 | 20 61 20 70 61 74 68 2e |lways be| a path.|
|00001b40| 0d 09 09 0d 09 09 2f 2f | 20 61 6c 6c 6f 63 61 74 |......//| allocat|
|00001b50| 65 20 6d 65 6d 6f 72 79 | 20 66 6f 72 20 6c 65 6e |e memory| for len|
|00001b60| 67 74 68 20 61 72 72 61 | 79 73 3b 20 64 6f 20 69 |gth arra|ys; do i|
|00001b70| 74 20 77 69 74 68 20 6f | 6e 65 20 61 6c 6c 6f 63 |t with o|ne alloc|
|00001b80| 61 74 69 6f 6e 20 73 70 | 6c 69 74 20 69 6e 20 68 |ation sp|lit in h|
|00001b90| 61 6c 66 2e 0d 09 09 62 | 64 72 2e 64 61 73 68 53 |alf....b|dr.dashS|
|00001ba0| 65 67 6d 65 6e 74 43 6f | 75 6e 74 20 3d 20 47 58 |egmentCo|unt = GX|
|00001bb0| 43 6f 75 6e 74 53 68 61 | 70 65 43 6f 6e 74 6f 75 |CountSha|peContou|
|00001bc0| 72 73 28 74 68 65 44 61 | 73 68 2d 3e 64 61 73 68 |rs(theDa|sh->dash|
|00001bd0| 29 3b 0d 09 09 62 64 72 | 2e 73 74 61 72 74 4c 65 |);...bdr|.startLe|
|00001be0| 6e 67 74 68 73 20 3d 20 | 28 64 6f 75 62 6c 65 2a |ngths = |(double*|
|00001bf0| 29 4e 65 77 50 74 72 28 | 32 20 2a 20 62 64 72 2e |)NewPtr(|2 * bdr.|
|00001c00| 64 61 73 68 53 65 67 6d | 65 6e 74 43 6f 75 6e 74 |dashSegm|entCount|
|00001c10| 20 2a 20 73 69 7a 65 6f | 66 28 64 6f 75 62 6c 65 | * sizeo|f(double|
|00001c20| 29 29 3b 0d 09 09 62 64 | 72 2e 65 6e 64 4c 65 6e |));...bd|r.endLen|
|00001c30| 67 74 68 73 20 3d 20 62 | 64 72 2e 73 74 61 72 74 |gths = b|dr.start|
|00001c40| 4c 65 6e 67 74 68 73 20 | 2b 20 62 64 72 2e 64 61 |Lengths |+ bdr.da|
|00001c50| 73 68 53 65 67 6d 65 6e | 74 43 6f 75 6e 74 3b 0d |shSegmen|tCount;.|
|00001c60| 09 09 72 65 71 75 69 72 | 65 5f 61 63 74 69 6f 6e |..requir|e_action|
|00001c70| 28 62 64 72 2e 73 74 61 | 72 74 4c 65 6e 67 74 68 |(bdr.sta|rtLength|
|00001c80| 73 2c 20 66 61 69 6c 65 | 64 5f 61 6c 6c 6f 63 31 |s, faile|d_alloc1|
|00001c90| 2c 20 47 58 50 6f 73 74 | 47 72 61 70 68 69 63 73 |, GXPost|Graphics|
|00001ca0| 45 72 72 6f 72 28 6f 75 | 74 5f 6f 66 5f 6d 65 6d |Error(ou|t_of_mem|
|00001cb0| 6f 72 79 29 3b 29 3b 0d | 0d 09 09 2f 2f 20 4c 6f |ory););.|...// Lo|
|00001cc0| 61 64 20 6c 65 6e 67 74 | 68 20 61 72 72 61 79 73 |ad lengt|h arrays|
|00001cd0| 2e 20 76 61 6c 75 65 73 | 20 62 61 73 65 64 20 6f |. values| based o|
|00001ce0| 6e 20 68 6f 72 69 7a 6f | 6e 74 61 6c 20 62 6f 75 |n horizo|ntal bou|
|00001cf0| 6e 64 73 20 6f 66 20 63 | 6f 6e 74 6f 75 72 2e 0d |nds of c|ontour..|
|00001d00| 09 09 66 6f 72 20 28 69 | 64 78 20 3d 20 30 3b 20 |..for (i|dx = 0; |
|00001d10| 69 64 78 20 3c 20 62 64 | 72 2e 64 61 73 68 53 65 |idx < bd|r.dashSe|
|00001d20| 67 6d 65 6e 74 43 6f 75 | 6e 74 3b 20 2b 2b 69 64 |gmentCou|nt; ++id|
|00001d30| 78 29 20 7b 0d 09 09 0d | 09 09 09 47 58 47 65 74 |x) {....|...GXGet|
|00001d40| 53 68 61 70 65 42 6f 75 | 6e 64 73 28 74 68 65 44 |ShapeBou|nds(theD|
|00001d50| 61 73 68 2d 3e 64 61 73 | 68 2c 20 69 64 78 20 2b |ash->das|h, idx +|
|00001d60| 20 31 2c 20 26 64 61 73 | 68 53 65 67 52 65 63 74 | 1, &das|hSegRect|
|00001d70| 29 3b 0d 09 09 09 62 64 | 72 2e 73 74 61 72 74 4c |);....bd|r.startL|
|00001d80| 65 6e 67 74 68 73 5b 69 | 64 78 5d 20 3d 20 46 69 |engths[i|dx] = Fi|
|00001d90| 78 65 64 54 6f 44 6f 75 | 62 6c 65 28 64 61 73 68 |xedToDou|ble(dash|
|00001da0| 53 65 67 52 65 63 74 2e | 6c 65 66 74 29 3b 0d 09 |SegRect.|left);..|
|00001db0| 09 09 62 64 72 2e 65 6e | 64 4c 65 6e 67 74 68 73 |..bdr.en|dLengths|
|00001dc0| 5b 69 64 78 5d 20 3d 20 | 46 69 78 65 64 54 6f 44 |[idx] = |FixedToD|
|00001dd0| 6f 75 62 6c 65 28 64 61 | 73 68 53 65 67 52 65 63 |ouble(da|shSegRec|
|00001de0| 74 2e 72 69 67 68 74 29 | 3b 0d 09 09 0d 09 09 7d |t.right)|;......}|
|00001df0| 2f 2f 65 6e 64 20 66 6f | 72 0d 09 09 0d 09 09 2f |//end fo|r....../|
|00001e00| 2f 20 47 6f 20 66 6f 72 | 20 69 74 2e 0d 09 09 28 |/ Go for| it....(|
|00001e10| 76 6f 69 64 29 53 68 61 | 70 65 57 61 6c 6b 65 72 |void)Sha|peWalker|
|00001e20| 28 20 74 68 65 53 68 61 | 70 65 2c 20 42 65 6e 64 |( theSha|pe, Bend|
|00001e30| 44 61 73 68 4d 6f 76 65 | 74 6f 2c 20 42 65 6e 64 |DashMove|to, Bend|
|00001e40| 44 61 73 68 4c 69 6e 65 | 74 6f 2c 20 42 65 6e 64 |DashLine|to, Bend|
|00001e50| 44 61 73 68 43 75 72 76 | 65 74 6f 2c 20 42 65 6e |DashCurv|eto, Ben|
|00001e60| 64 44 61 73 68 43 6c 6f | 73 65 70 61 74 68 2c 20 |dDashClo|sepath, |
|00001e70| 26 62 64 72 29 3b 0d 0d | 09 09 2f 2f 20 64 69 73 |&bdr);..|..// dis|
|00001e80| 70 6f 73 65 20 6f 66 20 | 61 6c 6c 6f 63 61 74 69 |pose of |allocati|
|00001e90| 6f 6e 73 2e 0d 09 09 44 | 69 73 70 6f 73 65 50 74 |ons....D|isposePt|
|00001ea0| 72 28 28 50 74 72 29 62 | 64 72 2e 73 74 61 72 74 |r((Ptr)b|dr.start|
|00001eb0| 4c 65 6e 67 74 68 73 29 | 3b 0d 09 09 0d 09 09 2f |Lengths)|;....../|
|00001ec0| 2f 20 4d 6f 76 65 20 74 | 68 65 20 62 65 6e 74 20 |/ Move t|he bent |
|00001ed0| 73 68 61 70 65 20 69 6e | 74 6f 20 74 61 72 67 65 |shape in|to targe|
|00001ee0| 74 2e 0d 09 09 47 58 43 | 6f 70 79 54 6f 53 68 61 |t....GXC|opyToSha|
|00001ef0| 70 65 28 74 68 65 53 68 | 61 70 65 2c 20 62 64 72 |pe(theSh|ape, bdr|
|00001f00| 2e 62 65 6e 64 44 61 73 | 68 53 68 61 70 65 29 3b |.bendDas|hShape);|
|00001f10| 0d 09 09 47 58 53 65 74 | 53 68 61 70 65 46 69 6c |...GXSet|ShapeFil|
|00001f20| 6c 28 74 68 65 53 68 61 | 70 65 2c 20 67 78 46 72 |l(theSha|pe, gxFr|
|00001f30| 61 6d 65 46 69 6c 6c 29 | 3b 09 09 09 2f 2f 20 42 |ameFill)|;...// B|
|00001f40| 65 6e 64 20 64 61 73 68 | 69 6e 67 20 69 73 20 61 |end dash|ing is a|
|00001f50| 6c 77 61 79 73 20 6f 70 | 65 6e 65 64 20 66 72 61 |lways op|ened fra|
|00001f60| 6d 65 2e 0d 0d 66 61 69 | 6c 65 64 5f 61 6c 6c 6f |me...fai|led_allo|
|00001f70| 63 31 3a 0d 09 0d 09 09 | 47 58 44 69 73 70 6f 73 |c1:.....|GXDispos|
|00001f80| 65 53 68 61 70 65 28 62 | 64 72 2e 62 65 6e 64 44 |eShape(b|dr.bendD|
|00001f90| 61 73 68 53 68 61 70 65 | 29 3b 0d 09 0d 09 7d 2f |ashShape|);....}/|
|00001fa0| 2f 41 70 70 6c 79 4f 6e | 65 42 65 6e 64 44 61 73 |/ApplyOn|eBendDas|
|00001fb0| 68 0d 09 0d 09 0d 09 0d | 09 0d 09 0d 2f 2a 2a 2a |h.......|..../***|
|00001fc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00001fd0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 0d 0d 09 |********|*****...|
|00001fe0| 41 70 70 6c 79 4f 6e 65 | 42 72 65 61 6b 44 61 73 |ApplyOne|BreakDas|
|00001ff0| 68 3a 0d 09 0d 09 54 68 | 69 73 20 69 73 20 6d 79 |h:....Th|is is my|
|00002000| 20 6f 77 6e 20 76 65 72 | 73 69 6f 6e 20 6f 66 20 | own ver|sion of |
|00002010| 50 72 69 6d 69 74 69 76 | 65 53 68 61 70 65 20 66 |Primitiv|eShape f|
|00002020| 6f 72 20 74 68 65 20 63 | 61 73 65 20 6f 66 0d 09 |or the c|ase of..|
|00002030| 61 20 62 72 65 61 6b 20 | 64 61 73 68 20 77 68 65 |a break |dash whe|
|00002040| 72 65 20 74 68 65 20 64 | 61 73 68 20 73 68 61 70 |re the d|ash shap|
|00002050| 65 20 69 73 20 61 20 70 | 6f 6c 79 67 6f 6e 2e 20 |e is a p|olygon. |
|00002060| 20 28 73 65 65 20 72 75 | 6c 65 73 20 62 65 6c 6f | (see ru|les belo|
|00002070| 77 29 0d 09 0d 09 54 68 | 69 73 20 69 73 20 62 65 |w)....Th|is is be|
|00002080| 63 61 75 73 65 20 74 68 | 65 72 65 20 73 65 65 6d |cause th|ere seem|
|00002090| 20 74 6f 20 62 65 20 69 | 6e 61 63 63 75 72 61 63 | to be i|naccurac|
|000020a0| 69 65 73 20 69 6e 20 47 | 58 20 64 61 73 68 69 6e |ies in G|X dashin|
|000020b0| 67 20 66 6f 72 20 74 68 | 69 73 0d 09 63 61 73 65 |g for th|is..case|
|000020c0| 20 77 68 69 63 68 20 63 | 61 75 73 65 20 74 68 65 | which c|ause the|
|000020d0| 20 74 65 78 74 20 70 6f | 73 69 74 69 6f 6e 69 6e | text po|sitionin|
|000020e0| 67 20 74 6f 20 6c 6f 6f | 6b 20 62 61 64 20 77 68 |g to loo|k bad wh|
|000020f0| 65 6e 20 74 68 65 20 64 | 61 73 68 69 6e 67 0d 09 |en the d|ashing..|
|00002100| 69 73 20 75 73 65 64 20 | 74 6f 20 64 65 74 65 72 |is used |to deter|
|00002110| 6d 69 6e 65 20 43 75 72 | 76 65 4c 61 79 6f 75 74 |mine Cur|veLayout|
|00002120| 2e 0d 09 0d 09 53 69 6e | 63 65 20 57 65 20 6b 6e |.....Sin|ce We kn|
|00002130| 6f 77 20 74 68 65 20 61 | 64 76 61 6e 63 65 20 69 |ow the a|dvance i|
|00002140| 73 20 7a 65 72 6f 2c 20 | 77 65 20 6f 6e 6c 79 20 |s zero, |we only |
|00002150| 68 61 76 65 20 74 6f 20 | 72 65 70 65 61 74 20 74 |have to |repeat t|
|00002160| 68 65 20 64 61 73 68 20 | 6f 6e 63 65 2e 0d 09 54 |he dash |once...T|
|00002170| 68 69 73 20 6d 61 6b 65 | 73 20 69 74 20 65 61 73 |his make|s it eas|
|00002180| 79 2e 0d 0d 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |y...****|********|
|00002190| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000021a0| 2a 2a 2a 2a 2f 0d 76 6f | 69 64 20 41 70 70 6c 79 |****/.vo|id Apply|
|000021b0| 4f 6e 65 42 72 65 61 6b | 44 61 73 68 28 67 78 53 |OneBreak|Dash(gxS|
|000021c0| 68 61 70 65 20 74 68 65 | 53 68 61 70 65 2c 20 67 |hape the|Shape, g|
|000021d0| 78 44 61 73 68 52 65 63 | 6f 72 64 20 2a 74 68 65 |xDashRec|ord *the|
|000021e0| 44 61 73 68 29 3b 0d 76 | 6f 69 64 20 41 70 70 6c |Dash);.v|oid Appl|
|000021f0| 79 4f 6e 65 42 72 65 61 | 6b 44 61 73 68 28 67 78 |yOneBrea|kDash(gx|
|00002200| 53 68 61 70 65 20 74 68 | 65 53 68 61 70 65 2c 20 |Shape th|eShape, |
|00002210| 67 78 44 61 73 68 52 65 | 63 6f 72 64 20 2a 74 68 |gxDashRe|cord *th|
|00002220| 65 44 61 73 68 29 0d 09 | 7b 0d 09 09 50 74 72 09 |eDash)..|{...Ptr.|
|00002230| 09 09 09 09 70 6f 6c 79 | 57 61 6c 6b 65 72 3b 0d |....poly|Walker;.|
|00002240| 09 09 6c 6f 6e 67 09 09 | 09 09 6e 75 6d 43 6f 6e |..long..|..numCon|
|00002250| 74 6f 75 72 73 3b 0d 09 | 09 6c 6f 6e 67 09 09 09 |tours;..|.long...|
|00002260| 09 70 6f 69 6e 74 73 49 | 6e 43 6f 6e 74 6f 75 72 |.pointsI|nContour|
|00002270| 3b 0d 09 09 6c 6f 6e 67 | 09 09 09 09 69 64 78 3b |;...long|....idx;|
|00002280| 0d 09 09 67 78 50 6f 69 | 6e 74 09 09 09 63 6f 6e |...gxPoi|nt...con|
|00002290| 74 6f 75 72 43 65 6e 74 | 65 72 3b 0d 09 09 46 69 |tourCent|er;...Fi|
|000022a0| 78 65 64 09 09 09 09 73 | 68 61 70 65 4c 65 6e 67 |xed....s|hapeLeng|
|000022b0| 74 68 3b 0d 09 09 46 69 | 78 65 64 09 09 09 09 64 |th;...Fi|xed....d|
|000022c0| 69 73 74 61 6e 63 65 3b | 0d 09 09 67 78 50 6f 69 |istance;|...gxPoi|
|000022d0| 6e 74 09 09 09 6c 6f 63 | 61 74 69 6f 6e 2c 20 74 |nt...loc|ation, t|
|000022e0| 61 6e 67 65 6e 74 3b 0d | 09 09 46 69 78 65 64 09 |angent;.|..Fixed.|
|000022f0| 09 09 09 70 65 6e 3b 0d | 09 09 67 78 4d 61 70 70 |...pen;.|..gxMapp|
|00002300| 69 6e 67 09 09 63 6f 6e | 74 6f 75 72 4d 61 70 70 |ing..con|tourMapp|
|00002310| 69 6e 67 2c 20 61 4d 61 | 70 70 69 6e 67 3b 0d 09 |ing, aMa|pping;..|
|00002320| 09 77 69 64 65 09 09 09 | 09 77 4c 65 6e 67 74 68 |.wide...|.wLength|
|00002330| 3b 0d 09 09 09 09 0d 09 | 09 41 63 63 75 72 61 74 |;.......|.Accurat|
|00002340| 65 47 65 74 53 68 61 70 | 65 4c 65 6e 67 74 68 28 |eGetShap|eLength(|
|00002350| 74 68 65 53 68 61 70 65 | 2c 20 30 2c 20 26 77 4c |theShape|, 0, &wL|
|00002360| 65 6e 67 74 68 29 3b 09 | 0d 09 09 73 68 61 70 65 |ength);.|...shape|
|00002370| 4c 65 6e 67 74 68 20 3d | 20 28 46 69 78 65 64 29 |Length =| (Fixed)|
|00002380| 77 4c 65 6e 67 74 68 2e | 6c 6f 3b 0d 0d 09 09 70 |wLength.|lo;....p|
|00002390| 65 6e 20 3d 20 66 66 28 | 31 29 3b 20 2f 2f 47 58 |en = ff(|1); //GX|
|000023a0| 47 65 74 53 68 61 70 65 | 50 65 6e 28 74 68 65 53 |GetShape|Pen(theS|
|000023b0| 68 61 70 65 29 3b 0d 09 | 09 0d 09 09 47 58 4c 6f |hape);..|....GXLo|
|000023c0| 63 6b 53 68 61 70 65 28 | 74 68 65 44 61 73 68 2d |ckShape(|theDash-|
|000023d0| 3e 64 61 73 68 29 3b 0d | 09 09 70 6f 6c 79 57 61 |>dash);.|..polyWa|
|000023e0| 6c 6b 65 72 20 3d 20 47 | 58 47 65 74 53 68 61 70 |lker = G|XGetShap|
|000023f0| 65 53 74 72 75 63 74 75 | 72 65 28 74 68 65 44 61 |eStructu|re(theDa|
|00002400| 73 68 2d 3e 64 61 73 68 | 2c 20 6e 69 6c 29 3b 09 |sh->dash|, nil);.|
|00002410| 09 0d 0d 09 09 6e 75 6d | 43 6f 6e 74 6f 75 72 73 |.....num|Contours|
|00002420| 20 3d 20 2a 28 6c 6f 6e | 67 2a 29 70 6f 6c 79 57 | = *(lon|g*)polyW|
|00002430| 61 6c 6b 65 72 3b 0d 09 | 09 70 6f 6c 79 57 61 6c |alker;..|.polyWal|
|00002440| 6b 65 72 20 2b 3d 20 73 | 69 7a 65 6f 66 28 6c 6f |ker += s|izeof(lo|
|00002450| 6e 67 29 3b 0d 09 09 0d | 09 09 2f 2a 2a 2a 2a 2a |ng);....|../*****|
|00002460| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002470| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 0d 09 09 0d 09 09 09 |********|*.......|
|00002480| 46 6f 72 20 65 61 63 68 | 20 63 6f 6e 74 6f 75 72 |For each| contour|
|00002490| 2c 20 66 69 6e 64 20 74 | 68 65 20 74 61 6e 67 65 |, find t|he tange|
|000024a0| 6e 74 20 70 6f 69 6e 74 | 20 6f 6e 20 74 68 65 20 |nt point| on the |
|000024b0| 63 75 72 76 65 20 61 74 | 20 0d 09 09 09 09 74 68 |curve at| .....th|
|000024c0| 65 20 64 69 73 74 61 6e | 63 65 20 6f 6e 20 74 68 |e distan|ce on th|
|000024d0| 65 20 63 75 72 76 65 20 | 63 6f 72 72 65 73 70 6f |e curve |correspo|
|000024e0| 6e 64 69 6e 67 20 74 6f | 20 74 68 65 20 68 6f 72 |nding to| the hor|
|000024f0| 69 7a 6f 6e 74 61 6c 20 | 63 65 6e 74 65 72 0d 09 |izontal |center..|
|00002500| 09 09 09 6f 66 20 74 68 | 65 20 63 6f 6e 74 6f 75 |...of th|e contou|
|00002510| 72 2e 0d 09 09 09 09 45 | 61 63 68 20 63 6f 6e 74 |r......E|ach cont|
|00002520| 6f 75 72 20 69 73 20 73 | 63 61 6c 65 64 20 62 79 |our is s|caled by|
|00002530| 20 74 68 65 20 70 65 6e | 20 74 68 69 63 6b 6e 65 | the pen| thickne|
|00002540| 73 73 20 61 62 6f 75 74 | 20 69 74 27 73 20 68 6f |ss about| it's ho|
|00002550| 72 69 7a 6f 6e 74 61 6c | 20 63 65 6e 74 65 72 2e |rizontal| center.|
|00002560| 0d 09 09 09 09 45 61 63 | 68 20 73 63 61 6c 65 64 |.....Eac|h scaled|
|00002570| 20 63 6f 6e 74 6f 75 72 | 20 69 73 20 72 6f 74 61 | contour| is rota|
|00002580| 74 65 64 20 61 62 6f 75 | 74 20 69 74 73 20 68 6f |ted abou|t its ho|
|00002590| 72 69 7a 6f 6e 74 61 6c | 20 63 65 6e 74 65 72 20 |rizontal| center |
|000025a0| 28 78 2c 30 29 20 62 79 | 0d 09 09 09 09 20 61 74 |(x,0) by|..... at|
|000025b0| 20 61 6e 20 61 6e 67 6c | 65 20 64 65 74 65 72 6d | an angl|e determ|
|000025c0| 69 6e 65 64 20 62 79 20 | 74 68 65 20 74 61 6e 67 |ined by |the tang|
|000025d0| 65 6e 74 20 76 65 63 74 | 6f 72 20 74 6f 20 74 68 |ent vect|or to th|
|000025e0| 65 20 63 75 72 76 65 2e | 0d 09 09 09 09 45 61 63 |e curve.|.....Eac|
|000025f0| 68 20 72 6f 74 61 74 65 | 64 20 63 6f 6e 74 6f 75 |h rotate|d contou|
|00002600| 72 20 69 73 20 74 68 65 | 6e 20 6d 6f 76 65 64 20 |r is the|n moved |
|00002610| 73 6f 20 69 74 73 20 68 | 6f 72 69 7a 6f 6e 74 61 |so its h|orizonta|
|00002620| 6c 20 70 6f 73 69 74 69 | 6f 6e 20 28 78 2c 30 29 |l positi|on (x,0)|
|00002630| 0d 09 09 09 09 20 69 73 | 20 61 74 20 74 68 65 20 |..... is| at the |
|00002640| 70 6f 69 6e 74 20 61 6c | 6f 6e 67 20 74 68 65 20 |point al|ong the |
|00002650| 63 75 72 76 65 2e 0d 09 | 09 0d 09 09 2a 2a 2a 2a |curve...|....****|
|00002660| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002670| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2f 0d 09 09 66 6f |********|**/...fo|
|00002680| 72 20 28 69 64 78 20 3d | 20 31 3b 20 69 64 78 20 |r (idx =| 1; idx |
|00002690| 3c 3d 20 6e 75 6d 43 6f | 6e 74 6f 75 72 73 3b 20 |<= numCo|ntours; |
|000026a0| 2b 2b 69 64 78 29 20 7b | 0d 09 09 0d 09 09 09 70 |++idx) {|.......p|
|000026b0| 6f 69 6e 74 73 49 6e 43 | 6f 6e 74 6f 75 72 20 3d |ointsInC|ontour =|
|000026c0| 20 2a 28 6c 6f 6e 67 2a | 29 70 6f 6c 79 57 61 6c | *(long*|)polyWal|
|000026d0| 6b 65 72 3b 0d 09 09 09 | 70 6f 6c 79 57 61 6c 6b |ker;....|polyWalk|
|000026e0| 65 72 20 2b 3d 20 73 69 | 7a 65 6f 66 28 6c 6f 6e |er += si|zeof(lon|
|000026f0| 67 29 3b 0d 09 09 0d 09 | 09 09 47 58 47 65 74 53 |g);.....|..GXGetS|
|00002700| 68 61 70 65 43 65 6e 74 | 65 72 28 74 68 65 44 61 |hapeCent|er(theDa|
|00002710| 73 68 2d 3e 64 61 73 68 | 2c 20 69 64 78 2c 20 26 |sh->dash|, idx, &|
|00002720| 63 6f 6e 74 6f 75 72 43 | 65 6e 74 65 72 29 3b 0d |contourC|enter);.|
|00002730| 09 09 09 0d 09 09 09 2f | 2a 2a 2a 0d 09 09 09 09 |......./|***.....|
|00002740| 66 69 6e 64 20 6f 75 74 | 20 74 68 65 20 64 69 73 |find out| the dis|
|00002750| 74 61 6e 63 65 20 69 6e | 74 6f 20 74 68 65 20 63 |tance in|to the c|
|00002760| 75 72 76 65 20 74 6f 20 | 70 75 74 20 74 68 69 73 |urve to |put this|
|00002770| 20 63 6f 75 6e 74 6f 75 | 72 2c 0d 09 09 09 09 20 | countou|r,..... |
|00002780| 77 72 61 70 20 69 66 20 | 6e 65 63 65 73 73 61 72 |wrap if |necessar|
|00002790| 79 0d 09 09 09 2a 2a 2a | 2f 09 09 09 0d 09 09 09 |y....***|/.......|
|000027a0| 64 69 73 74 61 6e 63 65 | 20 3d 20 63 6f 6e 74 6f |distance| = conto|
|000027b0| 75 72 43 65 6e 74 65 72 | 2e 78 3b 0d 09 09 09 69 |urCenter|.x;....i|
|000027c0| 66 20 28 64 69 73 74 61 | 6e 63 65 20 3e 20 73 68 |f (dista|nce > sh|
|000027d0| 61 70 65 4c 65 6e 67 74 | 68 29 0d 09 09 09 09 64 |apeLengt|h).....d|
|000027e0| 69 73 74 61 6e 63 65 20 | 3d 20 64 69 73 74 61 6e |istance |= distan|
|000027f0| 63 65 20 25 20 28 73 68 | 61 70 65 4c 65 6e 67 74 |ce % (sh|apeLengt|
|00002800| 68 20 2b 20 30 78 30 30 | 30 30 30 30 30 31 29 3b |h + 0x00|000001);|
|00002810| 0d 0d 09 09 09 41 63 63 | 75 72 61 74 65 53 68 61 |.....Acc|urateSha|
|00002820| 70 65 4c 65 6e 67 74 68 | 54 6f 50 6f 69 6e 74 28 |peLength|ToPoint(|
|00002830| 74 68 65 53 68 61 70 65 | 2c 20 30 2c 20 64 69 73 |theShape|, 0, dis|
|00002840| 74 61 6e 63 65 2c 20 26 | 6c 6f 63 61 74 69 6f 6e |tance, &|location|
|00002850| 2c 20 26 74 61 6e 67 65 | 6e 74 29 3b 0d 0d 09 09 |, &tange|nt);....|
|00002860| 09 2f 2a 20 4d 61 6b 65 | 20 61 20 6d 61 70 70 69 |./* Make| a mappi|
|00002870| 6e 67 20 66 6f 72 20 74 | 68 65 20 63 6f 6e 74 6f |ng for t|he conto|
|00002880| 75 72 20 62 61 73 65 64 | 20 6f 6e 20 74 68 65 20 |ur based| on the |
|00002890| 74 61 6e 67 65 6e 74 20 | 69 6e 66 6f 72 6d 61 74 |tangent |informat|
|000028a0| 69 6f 6e 20 2a 2f 0d 09 | 09 09 09 09 09 0d 09 09 |ion */..|........|
|000028b0| 09 52 65 73 65 74 4d 61 | 70 70 69 6e 67 28 26 63 |.ResetMa|pping(&c|
|000028c0| 6f 6e 74 6f 75 72 4d 61 | 70 70 69 6e 67 29 3b 09 |ontourMa|pping);.|
|000028d0| 09 09 0d 09 09 09 0d 09 | 09 09 2f 2a 20 4d 6f 76 |........|../* Mov|
|000028e0| 65 20 4d 61 70 70 69 6e | 67 20 74 6f 20 6f 72 69 |e Mappin|g to ori|
|000028f0| 67 69 6e 20 69 73 20 61 | 74 20 68 6f 72 69 7a 6f |gin is a|t horizo|
|00002900| 6e 74 61 6c 20 63 65 6e | 74 65 72 20 6f 66 20 63 |ntal cen|ter of c|
|00002910| 6f 74 6f 75 72 20 2a 2f | 0d 09 09 09 0d 09 09 09 |otour */|........|
|00002920| 4d 6f 76 65 4d 61 70 70 | 69 6e 67 28 26 63 6f 6e |MoveMapp|ing(&con|
|00002930| 74 6f 75 72 4d 61 70 70 | 69 6e 67 2c 20 2d 63 6f |tourMapp|ing, -co|
|00002940| 6e 74 6f 75 72 43 65 6e | 74 65 72 2e 78 2c 20 30 |ntourCen|ter.x, 0|
|00002950| 29 3b 0d 0d 09 09 09 2f | 2a 20 53 63 61 6c 65 20 |);...../|* Scale |
|00002960| 74 68 65 20 4d 61 70 70 | 69 6e 67 20 62 79 20 74 |the Mapp|ing by t|
|00002970| 68 65 20 70 65 6e 20 69 | 6e 20 74 68 65 20 59 20 |he pen i|n the Y |
|00002980| 64 69 72 65 63 74 69 6f | 6e 20 2a 2f 0d 0d 09 09 |directio|n */....|
|00002990| 09 2f 2f 53 63 61 6c 65 | 4d 61 70 70 69 6e 67 28 |.//Scale|Mapping(|
|000029a0| 26 63 6f 6e 74 6f 75 72 | 4d 61 70 70 69 6e 67 2c |&contour|Mapping,|
|000029b0| 20 30 2c 20 70 65 6e 2c | 20 2d 63 6f 6e 74 6f 75 | 0, pen,| -contou|
|000029c0| 72 43 65 6e 74 65 72 2e | 78 2c 20 30 29 3b 0d 09 |rCenter.|x, 0);..|
|000029d0| 09 09 09 09 09 0d 09 09 | 09 2f 2a 20 4e 6f 77 20 |........|./* Now |
|000029e0| 72 6f 74 61 74 65 20 74 | 68 65 20 6d 61 70 70 69 |rotate t|he mappi|
|000029f0| 6e 67 20 62 79 20 74 68 | 65 20 74 61 6e 67 65 6e |ng by th|e tangen|
|00002a00| 74 20 76 65 63 74 6f 72 | 20 2a 2f 20 09 09 09 0d |t vector| */ ....|
|00002a10| 09 09 09 52 65 73 65 74 | 4d 61 70 70 69 6e 67 28 |...Reset|Mapping(|
|00002a20| 26 61 4d 61 70 70 69 6e | 67 29 3b 0d 09 09 09 61 |&aMappin|g);....a|
|00002a30| 4d 61 70 70 69 6e 67 2e | 6d 61 70 5b 30 5d 5b 30 |Mapping.|map[0][0|
|00002a40| 5d 20 3d 20 20 74 61 6e | 67 65 6e 74 2e 78 3b 0d |] = tan|gent.x;.|
|00002a50| 09 09 09 61 4d 61 70 70 | 69 6e 67 2e 6d 61 70 5b |...aMapp|ing.map[|
|00002a60| 31 5d 5b 30 5d 20 3d 20 | 20 2d 74 61 6e 67 65 6e |1][0] = | -tangen|
|00002a70| 74 2e 79 3b 0d 09 09 09 | 61 4d 61 70 70 69 6e 67 |t.y;....|aMapping|
|00002a80| 2e 6d 61 70 5b 30 5d 5b | 31 5d 20 3d 20 20 74 61 |.map[0][|1] = ta|
|00002a90| 6e 67 65 6e 74 2e 79 3b | 0d 09 09 09 61 4d 61 70 |ngent.y;|....aMap|
|00002aa0| 70 69 6e 67 2e 6d 61 70 | 5b 31 5d 5b 31 5d 20 3d |ping.map|[1][1] =|
|00002ab0| 20 20 74 61 6e 67 65 6e | 74 2e 78 3b 0d 09 09 09 | tangen|t.x;....|
|00002ac0| 4d 61 70 4d 61 70 70 69 | 6e 67 28 26 63 6f 6e 74 |MapMappi|ng(&cont|
|00002ad0| 6f 75 72 4d 61 70 70 69 | 6e 67 2c 20 26 61 4d 61 |ourMappi|ng, &aMa|
|00002ae0| 70 70 69 6e 67 29 3b 0d | 09 09 09 4d 6f 76 65 4d |pping);.|...MoveM|
|00002af0| 61 70 70 69 6e 67 28 26 | 63 6f 6e 74 6f 75 72 4d |apping(&|contourM|
|00002b00| 61 70 70 69 6e 67 2c 20 | 63 6f 6e 74 6f 75 72 43 |apping, |contourC|
|00002b10| 65 6e 74 65 72 2e 78 2c | 20 30 29 3b 09 09 09 09 |enter.x,| 0);....|
|00002b20| 09 2f 2f 20 6d 6f 76 65 | 20 62 61 63 6b 20 74 6f |.// move| back to|
|00002b30| 20 6f 72 69 67 69 6e 61 | 6c 20 6c 6f 63 61 74 6f | origina|l locato|
|00002b40| 6e 20 0d 09 09 09 0d 09 | 09 09 2f 2a 20 4e 6f 77 |n ......|../* Now|
|00002b50| 20 74 72 61 6e 73 6c 61 | 74 65 20 6d 61 70 70 69 | transla|te mappi|
|00002b60| 6e 67 20 73 6f 20 63 6f | 6e 74 6f 75 72 73 20 68 |ng so co|ntours h|
|00002b70| 6f 72 69 7a 6f 6e 74 61 | 6c 20 63 65 6e 74 65 72 |orizonta|l center|
|00002b80| 20 77 69 6c 6c 20 62 65 | 20 61 74 20 70 6f 69 6e | will be| at poin|
|00002b90| 74 20 6f 6e 20 63 75 72 | 76 65 20 2a 2f 0d 09 09 |t on cur|ve */...|
|00002ba0| 09 0d 09 09 09 4d 6f 76 | 65 4d 61 70 70 69 6e 67 |.....Mov|eMapping|
|00002bb0| 28 26 63 6f 6e 74 6f 75 | 72 4d 61 70 70 69 6e 67 |(&contou|rMapping|
|00002bc0| 2c 20 6c 6f 63 61 74 69 | 6f 6e 2e 78 20 2d 20 63 |, locati|on.x - c|
|00002bd0| 6f 6e 74 6f 75 72 43 65 | 6e 74 65 72 2e 78 2c 20 |ontourCe|nter.x, |
|00002be0| 6c 6f 63 61 74 69 6f 6e | 2e 79 20 29 3b 0d 0d 09 |location|.y );...|
|00002bf0| 09 09 2f 2a 20 4d 61 70 | 20 74 68 65 20 70 6f 69 |../* Map| the poi|
|00002c00| 6e 74 73 20 69 6e 20 74 | 68 65 20 63 6f 6e 74 6f |nts in t|he conto|
|00002c10| 75 72 20 2a 2f 0d 09 09 | 09 0d 09 09 09 4d 61 70 |ur */...|.....Map|
|00002c20| 50 6f 69 6e 74 73 28 26 | 63 6f 6e 74 6f 75 72 4d |Points(&|contourM|
|00002c30| 61 70 70 69 6e 67 2c 20 | 70 6f 69 6e 74 73 49 6e |apping, |pointsIn|
|00002c40| 43 6f 6e 74 6f 75 72 2c | 20 28 67 78 50 6f 69 6e |Contour,| (gxPoin|
|00002c50| 74 2a 29 70 6f 6c 79 57 | 61 6c 6b 65 72 29 3b 0d |t*)polyW|alker);.|
|00002c60| 09 09 09 0d 09 09 09 2f | 2a 20 4d 6f 76 65 20 77 |......./|* Move w|
|00002c70| 61 6c 6b 65 72 20 74 6f | 20 6e 65 78 74 20 63 6f |alker to| next co|
|00002c80| 6e 74 6f 75 72 20 2a 2f | 0d 09 09 09 0d 09 09 09 |ntour */|........|
|00002c90| 70 6f 6c 79 57 61 6c 6b | 65 72 20 2b 3d 20 70 6f |polyWalk|er += po|
|00002ca0| 69 6e 74 73 49 6e 43 6f | 6e 74 6f 75 72 20 2a 20 |intsInCo|ntour * |
|00002cb0| 73 69 7a 65 6f 66 28 67 | 78 50 6f 69 6e 74 29 3b |sizeof(g|xPoint);|
|00002cc0| 0d 09 09 0d 09 09 7d 2f | 2f 65 6e 64 20 66 6f 72 |......}/|/end for|
|00002cd0| 0d 09 09 0d 09 09 47 58 | 55 6e 6c 6f 63 6b 53 68 |......GX|UnlockSh|
|00002ce0| 61 70 65 28 74 68 65 44 | 61 73 68 2d 3e 64 61 73 |ape(theD|ash->das|
|00002cf0| 68 29 3b 0d 09 09 0d 09 | 09 2f 2a 20 54 68 65 20 |h);.....|./* The |
|00002d00| 64 61 73 68 20 6e 6f 77 | 20 72 65 70 72 65 73 65 |dash now| represe|
|00002d10| 6e 74 73 20 74 68 65 20 | 69 6e 70 75 74 20 73 68 |nts the |input sh|
|00002d20| 61 70 65 20 64 61 73 68 | 65 64 20 77 69 74 68 20 |ape dash|ed with |
|00002d30| 69 74 2c 20 73 6f 20 63 | 6f 70 79 20 74 68 65 20 |it, so c|opy the |
|00002d40| 72 65 73 75 6c 74 20 69 | 6e 74 6f 20 74 68 65 20 |result i|nto the |
|00002d50| 69 6e 70 75 74 20 73 68 | 61 70 65 20 2a 2f 0d 09 |input sh|ape */..|
|00002d60| 09 0d 09 09 47 58 43 6f | 70 79 54 6f 53 68 61 70 |....GXCo|pyToShap|
|00002d70| 65 28 74 68 65 53 68 61 | 70 65 2c 20 74 68 65 44 |e(theSha|pe, theD|
|00002d80| 61 73 68 2d 3e 64 61 73 | 68 29 3b 0d 09 09 0d 09 |ash->das|h);.....|
|00002d90| 09 72 65 74 75 72 6e 3b | 0d 09 0d 09 7d 2f 2f 41 |.return;|....}//A|
|00002da0| 70 70 6c 79 4f 6e 65 42 | 72 65 61 6b 44 61 73 68 |pplyOneB|reakDash|
|00002db0| 0d 09 0d 09 0d 2f 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |...../**|********|
|00002dc0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00002dd0| 2a 2a 0d 0d 09 41 63 63 | 75 72 61 74 65 50 72 69 |**...Acc|uratePri|
|00002de0| 6d 69 74 69 76 65 53 68 | 61 70 65 3a 0d 09 0d 09 |mitiveSh|ape:....|
|00002df0| 54 68 69 73 20 72 6f 75 | 74 69 6e 65 20 72 65 70 |This rou|tine rep|
|00002e00| 6c 61 63 65 73 20 47 58 | 50 72 69 6d 69 74 69 76 |laces GX|Primitiv|
|00002e10| 65 53 68 61 70 65 2e 20 | 20 54 68 69 73 0d 09 69 |eShape. | This..i|
|00002e20| 73 20 62 65 63 61 75 73 | 65 20 6f 66 20 74 68 65 |s becaus|e of the|
|00002e30| 20 69 6e 61 63 63 75 72 | 61 63 69 65 73 20 69 6e | inaccur|acies in|
|00002e40| 20 74 68 65 20 47 58 20 | 69 6e 74 65 72 6e 61 6c | the GX |internal|
|00002e50| 0d 09 64 61 73 68 69 6e | 67 20 63 6f 64 65 20 77 |..dashin|g code w|
|00002e60| 68 69 63 68 20 6d 69 73 | 70 6c 61 63 65 73 20 64 |hich mis|places d|
|00002e70| 61 73 68 20 63 6f 6e 74 | 6f 75 72 73 20 73 6c 69 |ash cont|ours sli|
|00002e80| 67 68 74 6c 79 2c 0d 09 | 73 6f 6d 65 74 69 6d 65 |ghtly,..|sometime|
|00002e90| 73 2e 0d 09 0d 09 49 74 | 20 6f 6e 6c 79 20 77 6f |s.....It| only wo|
|00002ea0| 72 6b 73 20 66 6f 72 20 | 74 68 65 20 6b 69 6e 64 |rks for |the kind|
|00002eb0| 20 6f 66 20 64 61 73 68 | 69 6e 67 20 74 68 61 74 | of dash|ing that|
|00002ec0| 0d 09 77 65 20 61 72 65 | 20 75 73 69 6e 67 20 66 |..we are| using f|
|00002ed0| 6f 72 20 66 69 6e 64 69 | 6e 67 20 43 75 72 76 65 |or findi|ng Curve|
|00002ee0| 4c 61 79 6f 75 74 20 67 | 6c 79 70 68 0d 09 70 6f |Layout g|lyph..po|
|00002ef0| 73 69 74 69 6f 6e 73 2e | 20 28 73 65 65 20 62 65 |sitions.| (see be|
|00002f00| 6c 6f 77 29 2e 20 20 54 | 68 65 20 63 61 73 65 20 |low). T|he case |
|00002f10| 69 73 3a 0d 09 0d 09 09 | a5 09 41 20 66 72 61 6d |is:.....|..A fram|
|00002f20| 65 64 20 73 68 61 70 65 | 20 77 69 74 68 20 61 20 |ed shape| with a |
|00002f30| 64 61 73 68 0d 09 09 a5 | 20 44 61 73 68 20 69 73 |dash....| Dash is|
|00002f40| 20 61 20 70 6f 6c 79 67 | 6f 6e 20 6f 72 20 67 6c | a polyg|on or gl|
|00002f50| 79 70 68 0d 09 09 a5 20 | 50 65 6e 20 6f 66 20 31 |yph.... |Pen of 1|
|00002f60| 2e 30 20 28 6f 72 20 70 | 65 6e 20 6f 66 20 7a 65 |.0 (or p|en of ze|
|00002f70| 72 6f 20 77 69 74 68 20 | 62 65 6e 64 2d 64 61 73 |ro with |bend-das|
|00002f80| 68 29 0d 09 09 a5 20 44 | 61 73 68 20 73 63 61 6c |h).... D|ash scal|
|00002f90| 65 20 69 73 20 31 2e 30 | 0d 09 09 a5 20 44 61 73 |e is 1.0|.... Das|
|00002fa0| 68 20 61 64 76 61 6e 63 | 65 20 69 73 20 30 2e 30 |h advanc|e is 0.0|
|00002fb0| 0d 09 09 a5 20 44 61 73 | 68 20 70 68 61 73 65 20 |.... Das|h phase |
|00002fc0| 69 73 20 30 2e 30 0d 09 | 09 a5 20 42 72 65 61 6b |is 0.0..|.. Break|
|00002fd0| 20 6f 72 20 62 65 6e 64 | 20 64 61 73 68 20 61 74 | or bend| dash at|
|00002fe0| 74 72 69 62 75 74 65 73 | 0d 0d 0d 2a 2a 2a 2a 2a |tributes|...*****|
|00002ff0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|00003000| 2a 2a 2a 2a 2a 2a 2a 2f | 0d 76 6f 69 64 20 41 63 |*******/|.void Ac|
|00003010| 63 75 72 61 74 65 50 72 | 69 6d 69 74 69 76 65 53 |curatePr|imitiveS|
|00003020| 68 61 70 65 28 67 78 53 | 68 61 70 65 20 74 68 65 |hape(gxS|hape the|
|00003030| 53 68 61 70 65 29 3b 0d | 76 6f 69 64 20 41 63 63 |Shape);.|void Acc|
|00003040| 75 72 61 74 65 50 72 69 | 6d 69 74 69 76 65 53 68 |uratePri|mitiveSh|
|00003050| 61 70 65 28 67 78 53 68 | 61 70 65 20 74 68 65 53 |ape(gxSh|ape theS|
|00003060| 68 61 70 65 29 0d 09 7b | 0d 09 09 67 78 53 68 61 |hape)..{|...gxSha|
|00003070| 70 65 46 69 6c 6c 09 09 | 09 74 68 65 46 69 6c 6c |peFill..|.theFill|
|00003080| 3b 0d 09 09 67 78 44 61 | 73 68 52 65 63 6f 72 64 |;...gxDa|shRecord|
|00003090| 09 09 74 68 65 44 61 73 | 68 3b 0d 09 09 67 78 53 |..theDas|h;...gxS|
|000030a0| 68 61 70 65 54 79 70 65 | 09 09 09 74 68 65 54 79 |hapeType|...theTy|
|000030b0| 70 65 3b 0d 09 09 46 69 | 78 65 64 09 09 09 09 09 |pe;...Fi|xed.....|
|000030c0| 09 74 68 65 50 65 6e 3b | 0d 09 09 42 6f 6f 6c 65 |.thePen;|...Boole|
|000030d0| 61 6e 09 09 09 09 09 75 | 73 65 47 58 44 61 73 68 |an.....u|seGXDash|
|000030e0| 69 6e 67 20 3d 20 66 61 | 6c 73 65 3b 0d 09 09 09 |ing = fa|lse;....|
|000030f0| 09 0d 09 09 2f 2a 20 69 | 66 20 69 74 20 69 73 20 |..../* i|f it is |
|00003100| 6e 6f 74 20 61 20 66 72 | 61 6d 65 64 20 73 68 61 |not a fr|amed sha|
|00003110| 70 65 2c 20 64 6f 20 6e | 6f 72 6d 61 6c 20 70 72 |pe, do n|ormal pr|
|00003120| 69 6d 69 74 76 65 20 61 | 6e 64 20 72 65 74 75 72 |imitve a|nd retur|
|00003130| 6e 20 2a 2f 0d 09 09 09 | 09 0d 09 09 74 68 65 46 |n */....|....theF|
|00003140| 69 6c 6c 20 3d 20 47 58 | 47 65 74 53 68 61 70 65 |ill = GX|GetShape|
|00003150| 46 69 6c 6c 28 74 68 65 | 53 68 61 70 65 29 3b 0d |Fill(the|Shape);.|
|00003160| 09 09 69 66 20 28 20 28 | 74 68 65 46 69 6c 6c 20 |..if ( (|theFill |
|00003170| 21 3d 20 67 78 43 6c 6f | 73 65 64 46 72 61 6d 65 |!= gxClo|sedFrame|
|00003180| 46 69 6c 6c 29 20 26 26 | 20 28 74 68 65 46 69 6c |Fill) &&| (theFil|
|00003190| 6c 20 21 3d 20 67 78 4f | 70 65 6e 46 72 61 6d 65 |l != gxO|penFrame|
|000031a0| 46 69 6c 6c 29 20 29 20 | 7b 0d 09 09 0d 09 09 09 |Fill) ) |{.......|
|000031b0| 47 58 50 72 69 6d 69 74 | 69 76 65 53 68 61 70 65 |GXPrimit|iveShape|
|000031c0| 28 74 68 65 53 68 61 70 | 65 29 3b 0d 09 09 09 72 |(theShap|e);....r|
|000031d0| 65 74 75 72 6e 3b 0d 09 | 09 09 0d 09 09 7d 2f 2f |eturn;..|.....}//|
|000031e0| 65 6e 64 20 69 66 09 0d | 09 09 0d 09 09 0d 09 09 |end if..|........|
|000031f0| 2f 2a 20 69 66 20 69 74 | 20 64 6f 65 73 20 6e 6f |/* if it| does no|
|00003200| 74 20 68 61 76 65 20 61 | 20 64 61 73 68 20 64 6f |t have a| dash do|
|00003210| 20 6e 6f 72 6d 61 6c 20 | 70 72 69 6d 69 74 76 65 | normal |primitve|
|00003220| 20 61 6e 64 20 72 65 74 | 75 72 6e 20 2a 2f 0d 09 | and ret|urn */..|
|00003230| 09 0d 09 09 47 58 47 65 | 74 53 68 61 70 65 44 61 |....GXGe|tShapeDa|
|00003240| 73 68 28 74 68 65 53 68 | 61 70 65 2c 20 26 74 68 |sh(theSh|ape, &th|
|00003250| 65 44 61 73 68 29 3b 0d | 0d 09 09 69 66 20 28 74 |eDash);.|...if (t|
|00003260| 68 65 44 61 73 68 2e 64 | 61 73 68 20 3d 3d 20 6e |heDash.d|ash == n|
|00003270| 69 6c 29 20 7b 09 09 0d | 09 09 0d 09 09 09 47 58 |il) {...|......GX|
|00003280| 50 72 69 6d 69 74 69 76 | 65 53 68 61 70 65 28 74 |Primitiv|eShape(t|
|00003290| 68 65 53 68 61 70 65 29 | 3b 0d 09 09 09 72 65 74 |heShape)|;....ret|
|000032a0| 75 72 6e 3b 0d 09 09 09 | 0d 09 09 7d 2f 2f 65 6e |urn;....|...}//en|
|000032b0| 64 20 69 66 09 0d 09 09 | 0d 09 09 2f 2a 20 49 66 |d if....|.../* If|
|000032c0| 20 74 68 65 20 70 65 6e | 20 69 73 20 6e 6f 74 20 | the pen| is not |
|000032d0| 31 20 61 6e 64 20 69 74 | 20 69 73 6e 27 74 20 7a |1 and it| isn't z|
|000032e0| 65 72 6f 20 77 69 74 68 | 20 62 65 6e 64 61 73 68 |ero with| bendash|
|000032f0| 69 6e 67 2c 20 64 6f 20 | 6e 6f 72 6d 61 6c 20 70 |ing, do |normal p|
|00003300| 72 69 6d 69 74 69 76 65 | 20 2a 2f 0d 09 09 74 68 |rimitive| */...th|
|00003310| 65 50 65 6e 20 3d 20 47 | 58 47 65 74 53 68 61 70 |ePen = G|XGetShap|
|00003320| 65 50 65 6e 28 74 68 65 | 53 68 61 70 65 29 3b 0d |ePen(the|Shape);.|
|00003330| 09 09 0d 09 09 69 66 20 | 28 28 74 68 65 50 65 6e |.....if |((thePen|
|00003340| 20 21 3d 20 66 66 28 31 | 29 20 26 26 20 28 20 28 | != ff(1|) && ( (|
|00003350| 74 68 65 50 65 6e 20 21 | 3d 20 30 29 20 26 26 20 |thePen !|= 0) && |
|00003360| 28 74 68 65 44 61 73 68 | 2e 61 74 74 72 69 62 75 |(theDash|.attribu|
|00003370| 74 65 73 20 26 20 67 78 | 42 65 6e 64 44 61 73 68 |tes & gx|BendDash|
|00003380| 29 20 29 20 29 20 29 20 | 7b 0d 09 09 0d 09 09 09 |) ) ) ) |{.......|
|00003390| 47 58 50 72 69 6d 69 74 | 69 76 65 53 68 61 70 65 |GXPrimit|iveShape|
|000033a0| 28 74 68 65 53 68 61 70 | 65 29 3b 0d 09 09 09 47 |(theShap|e);....G|
|000033b0| 58 44 69 73 70 6f 73 65 | 53 68 61 70 65 28 74 68 |XDispose|Shape(th|
|000033c0| 65 44 61 73 68 2e 64 61 | 73 68 29 3b 0d 09 09 09 |eDash.da|sh);....|
|000033d0| 72 65 74 75 72 6e 3b 0d | 09 09 09 0d 09 09 7d 2f |return;.|......}/|
|000033e0| 2f 65 6e 64 20 69 66 0d | 09 09 09 09 0d 09 09 2f |/end if.|......./|
|000033f0| 2a 20 69 66 20 74 68 65 | 20 64 61 73 68 20 69 6e |* if the| dash in|
|00003400| 73 27 74 20 61 20 70 6f | 6c 79 67 6f 6e 20 64 6f |s't a po|lygon do|
|00003410| 20 6e 6f 72 6d 61 6c 20 | 70 72 69 6d 69 74 76 65 | normal |primitve|
|00003420| 20 61 6e 64 20 72 65 74 | 75 72 6e 20 2a 2f 0d 09 | and ret|urn */..|
|00003430| 09 74 68 65 54 79 70 65 | 20 3d 20 47 58 47 65 74 |.theType| = GXGet|
|00003440| 53 68 61 70 65 54 79 70 | 65 28 74 68 65 44 61 73 |ShapeTyp|e(theDas|
|00003450| 68 2e 64 61 73 68 29 3b | 0d 09 09 69 66 20 28 74 |h.dash);|...if (t|
|00003460| 68 65 54 79 70 65 20 21 | 3d 20 67 78 50 6f 6c 79 |heType !|= gxPoly|
|00003470| 67 6f 6e 54 79 70 65 29 | 20 7b 09 09 0d 09 09 0d |gonType)| {......|
|00003480| 09 09 09 47 58 50 72 69 | 6d 69 74 69 76 65 53 68 |...GXPri|mitiveSh|
|00003490| 61 70 65 28 74 68 65 53 | 68 61 70 65 29 3b 0d 09 |ape(theS|hape);..|
|000034a0| 09 09 47 58 44 69 73 70 | 6f 73 65 53 68 61 70 65 |..GXDisp|oseShape|
|000034b0| 28 74 68 65 44 61 73 68 | 2e 64 61 73 68 29 3b 0d |(theDash|.dash);.|
|000034c0| 09 09 09 72 65 74 75 72 | 6e 3b 0d 09 09 09 0d 09 |...retur|n;......|
|000034d0| 09 7d 2f 2f 65 6e 64 20 | 69 66 09 0d 09 09 0d 09 |.}//end |if......|
|000034e0| 09 75 73 65 47 58 44 61 | 73 68 69 6e 67 20 3d 20 |.useGXDa|shing = |
|000034f0| 66 61 6c 73 65 3b 0d 09 | 09 69 66 20 28 20 74 68 |false;..|.if ( th|
|00003500| 65 44 61 73 68 2e 70 68 | 61 73 65 20 21 3d 20 30 |eDash.ph|ase != 0|
|00003510| 20 29 0d 09 09 09 75 73 | 65 47 58 44 61 73 68 69 | )....us|eGXDashi|
|00003520| 6e 67 20 3d 20 74 72 75 | 65 3b 0d 09 09 0d 09 09 |ng = tru|e;......|
|00003530| 69 66 20 28 20 74 68 65 | 44 61 73 68 2e 61 64 76 |if ( the|Dash.adv|
|00003540| 61 6e 63 65 20 21 3d 20 | 30 29 0d 09 09 09 75 73 |ance != |0)....us|
|00003550| 65 47 58 44 61 73 68 69 | 6e 67 20 3d 20 74 72 75 |eGXDashi|ng = tru|
|00003560| 65 3b 0d 09 09 0d 09 09 | 69 66 20 28 20 74 68 65 |e;......|if ( the|
|00003570| 44 61 73 68 2e 73 63 61 | 6c 65 20 21 3d 20 66 66 |Dash.sca|le != ff|
|00003580| 28 31 29 20 29 0d 09 09 | 09 75 73 65 47 58 44 61 |(1) )...|.useGXDa|
|00003590| 73 68 69 6e 67 20 3d 20 | 74 72 75 65 3b 0d 09 09 |shing = |true;...|
|000035a0| 0d 09 09 69 66 20 28 20 | 21 28 74 68 65 44 61 73 |...if ( |!(theDas|
|000035b0| 68 2e 61 74 74 72 69 62 | 75 74 65 73 20 26 20 67 |h.attrib|utes & g|
|000035c0| 78 42 72 65 61 6b 44 61 | 73 68 20 29 20 26 26 20 |xBreakDa|sh ) && |
|000035d0| 21 28 74 68 65 44 61 73 | 68 2e 61 74 74 72 69 62 |!(theDas|h.attrib|
|000035e0| 75 74 65 73 20 26 20 67 | 78 42 65 6e 64 44 61 73 |utes & g|xBendDas|
|000035f0| 68 29 29 0d 09 09 09 75 | 73 65 47 58 44 61 73 68 |h))....u|seGXDash|
|00003600| 69 6e 67 20 3d 20 74 72 | 75 65 3b 0d 0d 09 09 69 |ing = tr|ue;....i|
|00003610| 66 20 28 75 73 65 47 58 | 44 61 73 68 69 6e 67 29 |f (useGX|Dashing)|
|00003620| 20 7b 0d 09 09 09 09 0d | 09 09 09 47 58 50 72 69 | {......|...GXPri|
|00003630| 6d 69 74 69 76 65 53 68 | 61 70 65 28 74 68 65 53 |mitiveSh|ape(theS|
|00003640| 68 61 70 65 29 3b 0d 09 | 09 09 47 58 44 69 73 70 |hape);..|..GXDisp|
|00003650| 6f 73 65 53 68 61 70 65 | 28 74 68 65 44 61 73 68 |oseShape|(theDash|
|00003660| 2e 64 61 73 68 29 3b 0d | 09 09 09 72 65 74 75 72 |.dash);.|...retur|
|00003670| 6e 3b 0d 09 09 09 0d 09 | 09 7d 2f 2f 65 6e 64 20 |n;......|.}//end |
|00003680| 69 66 09 0d 0d 09 09 2f | 2a 20 69 66 20 77 65 20 |if...../|* if we |
|00003690| 67 6f 74 20 74 6f 20 68 | 65 72 65 2c 20 74 68 65 |got to h|ere, the|
|000036a0| 6e 20 63 61 6c 6c 20 6f | 75 72 20 64 61 73 68 69 |n call o|ur dashi|
|000036b0| 6e 67 20 63 6f 64 65 20 | 2a 2f 0d 09 09 09 09 0d |ng code |*/......|
|000036c0| 09 09 69 66 20 28 20 74 | 68 65 44 61 73 68 2e 61 |..if ( t|heDash.a|
|000036d0| 74 74 72 69 62 75 74 65 | 73 20 26 20 67 78 42 72 |ttribute|s & gxBr|
|000036e0| 65 61 6b 44 61 73 68 20 | 29 0d 09 09 09 41 70 70 |eakDash |)....App|
|000036f0| 6c 79 4f 6e 65 42 72 65 | 61 6b 44 61 73 68 28 74 |lyOneBre|akDash(t|
|00003700| 68 65 53 68 61 70 65 2c | 20 26 74 68 65 44 61 73 |heShape,| &theDas|
|00003710| 68 29 3b 0d 09 09 65 6c | 73 65 20 69 66 20 28 74 |h);...el|se if (t|
|00003720| 68 65 44 61 73 68 2e 61 | 74 74 72 69 62 75 74 65 |heDash.a|ttribute|
|00003730| 73 20 26 20 67 78 42 65 | 6e 64 44 61 73 68 20 29 |s & gxBe|ndDash )|
|00003740| 0d 09 09 09 41 70 70 6c | 79 4f 6e 65 42 65 6e 64 |....Appl|yOneBend|
|00003750| 44 61 73 68 28 74 68 65 | 53 68 61 70 65 2c 20 26 |Dash(the|Shape, &|
|00003760| 74 68 65 44 61 73 68 29 | 3b 0d 09 09 09 0d 09 09 |theDash)|;.......|
|00003770| 09 0d 09 09 47 58 44 69 | 73 70 6f 73 65 53 68 61 |....GXDi|sposeSha|
|00003780| 70 65 28 74 68 65 44 61 | 73 68 2e 64 61 73 68 29 |pe(theDa|sh.dash)|
|00003790| 3b 0d 09 09 0d 09 09 72 | 65 74 75 72 6e 3b 09 09 |;......r|eturn;..|
|000037a0| 0d 09 0d 09 7d 2f 2f 41 | 63 63 75 72 61 74 65 50 |....}//A|ccurateP|
|000037b0| 72 69 6d 69 74 69 76 65 | 53 68 61 70 65 0d 09 0d |rimitive|Shape...|
|000037c0| 09 0d 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000037f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003800| 00 00 01 00 00 00 01 54 | 00 00 00 54 00 00 00 46 |.......T|...T...F|
|00003810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003820| 00 00 00 00 00 00 0c 4d | 57 20 43 2f 43 2b 2b 20 |.......M|W C/C++ |
|00003830| 18 41 63 63 75 72 61 74 | 65 50 72 69 6d 69 74 69 |.Accurat|ePrimiti|
|00003840| 76 65 53 68 61 70 65 2e | 63 68 02 00 00 00 54 45 |veShape.|ch....TE|
|00003850| 00 00 54 45 58 54 43 57 | 49 45 01 00 ff ff ff ff |..TEXTCW|IE......|
|00003860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003870| 00 00 ad 81 c6 52 00 00 | 37 42 00 00 01 9a 00 00 |.....R..|7B......|
|00003880| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003890| 00 00 54 45 58 54 02 2e | 68 00 00 00 00 00 00 00 |..TEXT..|h.......|
|000038a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000038b0| 00 00 00 00 00 00 0c 4d | 57 20 43 2f 43 2b 2b 20 |.......M|W C/C++ |
|000038c0| 50 50 43 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |PPC.....|........|
|000038d0| 00 00 00 00 00 00 10 00 | 00 00 54 45 58 54 02 2e |........|..TEXT..|
|000038e0| 70 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |p.......|........|
|000038f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 0d 4d |........|.......M|
|00003900| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00003910| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00003920| 00 00 00 00 00 00 00 03 | 00 02 00 57 00 05 01 df |........|...W....|
|00003930| 02 81 00 57 00 05 01 df | 02 81 ae 6d 7b d6 00 00 |...W....|...m{...|
|00003940| 19 50 00 00 19 50 00 00 | 0a 11 01 00 00 00 00 04 |.P...P..|........|
|00003950| 00 01 00 01 00 00 01 00 | 00 00 01 54 00 00 00 54 |........|...T...T|
|00003960| 00 00 00 46 01 9d b2 68 | 1b 8c 00 00 00 1c 00 46 |...F...h|.......F|
|00003970| 00 01 4d 50 53 52 00 00 | 00 12 4d 57 42 42 00 00 |..MPSR..|..MWBB..|
|00003980| 00 1e 03 ed ff ff 00 00 | 00 00 00 00 00 00 03 f0 |........|........|
|00003990| ff ff 00 00 00 4c 00 00 | 00 00 00 00 00 00 00 00 |.....L..|........|
|000039a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000039f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+